Closed Bug 394052 Opened 18 years ago Closed 18 years ago

Leaking five foo.xml documents running one or more of the mochitests using property_database.js

Categories

(Core :: XBL, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta2

People

(Reporter: Waldo, Assigned: sharparrow1)

References

Details

(Keywords: memory-leak)

Attachments

(1 file)

When I run the mochitests with leak-gauge.pl logging, I leak five documents for foo.xml. I don't know yet which test(s) actually cause(s) these leaks.
Flags: blocking1.9?
Attached patch PatchSplinter Review
This fixes the leak for remote XBL; failed loads for XBL from file:// URLs still cause a leak, but this should fix the leak showing up with mochitests. Not sure if this is the best way to go about fixing this, but the relevant code is very messy.
Assignee: jwalden+bmo → sharparrow1
Attachment #278710 - Flags: review?(jonas)
Assignee: sharparrow1 → nobody
Status: ASSIGNED → NEW
Component: Style System (CSS) → XBL
QA Contact: style-system → xbl
Assignee: nobody → sharparrow1
Status: NEW → ASSIGNED
Is this basically the same as bug 324465?
Yes, looks like it. I'll set blocking since the patch is here.
Blocks: 324465
Why are the nsXBLBindingRequest::Destroy in nsXBLStreamListener::Load and nsXBLStreamListener::OnStopRequest no longer needed?
Flags: blocking1.9? → blocking1.9+
In my testing this is currently the only window/document/docshell leak in Mochitests. We should push on this and get it fixed before some new leak shows up that prevents leak-gauge testing from being added to runtests.pl. As for the Destroys not being necessary, I think that's just relying on Load/OnStopRequest not firing multiple times, I think (based on reading the patch and vague memories of when the patch was written). I remember a question about whether OnStopRequest fired twice, with the answer being only for multipart/alternative (?), which probably wouldn't work already anyway.
Eli: Still waiting for a reply from you to the question in comment 4
Comment on attachment 278710 [details] [diff] [review] Patch This leak seems unlikely to happen for normal web pages, so lets wait with this until after beta.
Attachment #278710 - Flags: superreview+
Attachment #278710 - Flags: review?(jonas)
Attachment #278710 - Flags: review+
Target Milestone: mozilla1.9 M8 → mozilla1.9 M10
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: