Closed Bug 330878 Opened 19 years ago Closed 19 years ago

Firefox leaks the update.xml document when it checks for updates

Categories

(Toolkit :: Application Update, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8.1beta1

People

(Reporter: dbaron, Assigned: mwu)

References

Details

(Keywords: fixed1.8.1, memory-leak, Whiteboard: [SWAG: 1d or less])

Attachments

(1 file)

I use the leak tools documented in http://dbaron.org/log/2006-01#e20060110a and http://dbaron.org/log/2006-01#e20060114a pretty much all the time I run Firefox, and every day or so (roughly; it certainly matches my expectation of how often Firefox checks for updates) the log contains something like this: Leaked outer window a00bd70 at address a00bd70. Leaked inner window a0932f8 (outer a00bd70) at address a0932f8. ... with URI "about:blank". Leaked document at address afa4f90. ... with URI "https://aus2.mozilla.org/update/1/Firefox/1.6a1/0000000000/Linux_x86-gcc3/en-US/default/update.xml". Summary: Leaked 2 out of 386 DOM Windows Leaked 1 out of 359 documents Leaked 0 out of 98 docshells (This example shows no other leaks.) So we seem to leak stuff when we check for updates.
Dupe of bug 323402? That has a local url and leaks 2 DOM Windows and 0 documents, this is remote and leaks 2 DOM Windows and 1 document, though, so not sure.
No, it's not a duplicate. That's about leaking updates.xul (part of the UI) when using the UI; this is about leaking the update.xml fetched from the server and has no UI interaction.
Blocks: 336955
Flags: blocking1.9a2?
Flags: blocking-firefox2?
I don't know if this is the same bug, but with the new leak detector (http://dbaron.org/mozilla/leak-monitor/), I get a leak every time I try Help/Check_for_updates. The detector says it is in: chrome://mozapps/content/updates/updates.js lines 505-508, 514-526, 532-537, 543-547 (I cannot find this file.)
I'm pretty sure that's bug 336955 you're experiencing :)
Flags: blocking-firefox2? → blocking-firefox2+
Keywords: helpwanted
Target Milestone: --- → Firefox 2 beta1
Assignee: nobody → michael.wu
Whiteboard: [SWAG: 1d or less]
Releases our XMLHttpRequest object when we're done with it.
Attachment #225497 - Flags: review?(darin)
Comment on attachment 225497 [details] [diff] [review] FIx memory leak in nsUpdateService Looks good, r+a=darin
Attachment #225497 - Flags: review?(darin)
Attachment #225497 - Flags: review+
Attachment #225497 - Flags: approval-branch-1.8.1+
Fix checked in on branch and trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: helpwantedfixed1.8.1
Resolution: --- → FIXED
Flags: blocking1.9a2?
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: