Closed Bug 1873950 Opened 9 months ago Closed 7 months ago

Temporary directories left behind from composing with dragged attachments

Categories

(Thunderbird :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED
125 Branch

People

(Reporter: yo, Assigned: silvia)

References

Details

Attachments

(1 file, 1 obsolete file)

When adding an attachment from another message, this is stored in the temp directory in a folder pid-NNNN.
The code registers the file itself for deletion here:
https://searchfox.org/comm-central/rev/d47e431b702099ec3bbfa8a8fffe0060d4823497/mail/components/compose/content/MsgComposeCommands.js#7977
but both files and directories are left when TB closes.

Not so easy to fix since the M-C code only allows for the deletion of files, not directories:
https://searchfox.org/mozilla-central/rev/b1a029fadaaabb333d8139f9ec3924a20c0c941f/uriloader/exthandler/nsExternalHelperAppService.cpp#1127-1130

(Note that bug 1873952 is a duplicate of this bug.)

Duplicate of this bug: 1873952
Component: Add-Ons: Extensions API → General

Bonus fix: Fix nsMsgCreateTempFile() so it cleans up after itself and remove second copy of the function.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1873950-delete-temp-pid-NNNN.patch

Depends on D204154

Assignee: nobody → silvia
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9390402 - Attachment is obsolete: true

Bonus fix: Fix nsMsgCreateTempFile() so it cleans up after itself and remove second copy of the function.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1873950-delete-temp-pid-NNNN.patch

Depends on D204411

Target Milestone: --- → 125 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/733d04a27176
Delete pid-NNNN directory for temporary files on exit. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: