Closed Bug 318048 Opened 19 years ago Closed 16 years ago

viewing source in external editor never deletes the temp. file

Categories

(Toolkit :: View Source, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: Biesinger, Assigned: jason.barnabe)

Details

Attachments

(1 file)

from bug 172817

 ------- Comment #127 From Jason Barnabe (np)  2005-11-28 14:15 PST  [reply] -------

(In reply to comment #126)
> am I reading this right that the temporary files are never deleted?
Never deleted by us. Since it's in the system temp directory, the OS will
delete them whenever it sees fit.

[...]

------- Comment #128 From Christian Biesinger (:bi) (reviews slower than usual) 2005-11-28 14:19 PST [reply] -------

what if the OS doesn't? (e.g. FC4, Windows)


------- Comment #129 From Jason Barnabe (np) 2005-11-28 14:48 PST [reply] -------

(In reply to comment #128)
> what if the OS doesn't?
Then the file will stay there forever. If you think this is a problem, feel
free to file a new bug.
FMI, what do you feel is the problem with leaving the temp files? Privacy concerns? Hard drive space?
privacy + cluttered up /tmp directory (still annoyed that fc4 doesn't kill it on startup). and of course the general principle that apps should clean up their temp data.
nsPIExternalAppLauncher seems to expect the file to exist when you register it. (Maybe that should be documented?) Putting the new code in getTemporaryFile made the file deletion hit or miss, so I moved the code to after we're done writing to the file.
Assignee: nobody → jason_barnabe
Status: NEW → ASSIGNED
Attachment #211498 - Flags: review?(mconnor)
Attachment #211498 - Flags: review?(mconnor) → review?(mano)
Comment on attachment 211498 [details] [diff] [review]
patch
[Checkin: Comment 8]

Moving the request over to gavin since I cannot test this on mac, sorry for the ver long delay here.
Attachment #211498 - Flags: review?(mano) → review?(gavin.sharp)
Comment on attachment 211498 [details] [diff] [review]
patch
[Checkin: Comment 8]

r=me, but it might be worth filing a bug about documenting the restriction that deleteTemporaryFileOnExit's argument be an existing file, or removing it. It would also be good to have a bug filed on http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/uriloader/exthandler/nsIExternalHelperAppService.idl&rev=1.24&mark=90-92#89 .
Attachment #211498 - Flags: review?(gavin.sharp) → review+
Product: Firefox → Toolkit
biesi: Did you forgot this patch ?
it's not my patch...
Keywords: checkin-needed
Comment on attachment 211498 [details] [diff] [review]
patch
[Checkin: Comment 8]

I manually "applied" it to current Hg tree.

http://hg.mozilla.org/mozilla-central/rev/7a7bb7cbbc3d
Attachment #211498 - Attachment description: patch → patch [Checkin: Comment 8]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Flags: in-litmus?
Keywords: checkin-needed
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: