Created attachment 9266065
1753242_esr91.patch
fixed version for esr91 based on comment 11.
Diff to comment 11:
```
➜ hg diff
diff --git a/mail/test/browser/attachment/browser_openAttachment.js
b/mail/test/browser/attachment/browser_openAttachment.js
--- a/mail/test/browser/attachment/browser_openAttachment.js
+++ b/mail/test/browser/attachment/browser_openAttachment.js
@@ -39,17 +39,17 @@ add_task(async function setupModule(modu
be_in_folder(folder);
// @see logic for tmpD in msgHdrView.js
tmpD = PathUtils.join(
Services.dirsvc.get("TmpD", Ci.nsIFile).path,
"pid-" + Services.appinfo.processID
);
- let savePath = PathUtils.join(tmpD, "saveDestination");
+ savePath = PathUtils.join(tmpD, "saveDestination");
await IOUtils.makeDirectory(savePath);
Services.prefs.setStringPref("browser.download.dir", savePath);
Services.prefs.setIntPref("browser.download.folderList", 2);
Services.prefs.setBoolPref("browser.download.useDownloadDir", true);
Services.prefs.setIntPref("security.dialog_enable_delay", 0);
let mockedExecutable = FileUtils.getFile("TmpD", ["mockedExecutable"]);
@@ -406,12 +406,8 @@ add_task(async function saveToDiskPrompt
let file = await checkFileSaved(tmpD);
file.remove(false);
Assert.ok(MockFilePicker.shown, "file picker was shown");
MockFilePicker.reset();
Services.prefs.setBoolPref("browser.download.useDownloadDir", true);
});
-registerCleanupFunction(() => {
- // Remove created folders.
- folder.deleteSelf(null);
-});
```
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/1959604
Title:
[upstream] Thunderbird 91.5.0 regression: writes attachments to /tmp
readable to everyone
Status in Mozilla Thunderbird:
Fix Released
Status in thunderbird package in Ubuntu:
Triaged
Bug description:
thunderbird saves opened attachments to /tmp with permissions
according to umask setting. This was fixed a long time ago with a
protected folder /tmp/mozilla_${USER}0 and was still working correctly
as of version 78.14.0+build1-0ubuntu0.20.04.2. The recent update to
1:91.5.0+build1-0ubuntu0.20.04.1 reintroduced the bug.
Ubuntu 20.04.3 LTS
Kernel release: 5.13.0-25-generic
Architecture: x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/1959604/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp