Closed
Bug 406684
Opened 17 years ago
Closed 17 years ago
Memory leaks when content policies set properties of wrapped nodes
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9beta2
People
(Reporter: jwkbugzilla, Assigned: peterv)
References
Details
(Keywords: memory-leak, regression)
Attachments
(2 files)
1.76 KB,
text/plain
|
Details | |
1.20 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
sicking
:
approval1.9+
|
Details | Diff | Splinter Review |
This has been reported as a massive memory leak in the Adblock Plus extension when used with Minefield nightlies. After minimizing the testcase, it seems to be enough to do the following from a content policy (method ShouldLoad) on a wrapped content node: node.foo = 1; Output from leak-gauge.pl after starting Minefield and closing it immediately after loading the first page: Leaked inner window 16dc808 (outer 1811088) at address 16dc808. ... with URI "http://www.mozilla.org/projects/minefield/". Leaked inner window 1662550 (outer 15e8530) at address 1662550. ... with URI "about:blank". Leaked outer window 15e8530 at address 15e8530. Leaked inner window 1890510 (outer 1811088) at address 1890510. ... with URI "about:blank". Leaked outer window 1811088 at address 1811088. Leaked document at address 16b7468. ... with URI "http://www.mozilla.org/projects/minefield/". Leaked document at address 15bd9a0. ... with URI "about:blank". Summary: Leaked 5 out of 7 DOM Windows Leaked 2 out of 38 documents Leaked 0 out of 3 docshells I didn't manage to reproduce the same issue without content policies though it might be possible. Regression range is 2007113005 to 2007120105, bug 348156 seems to be the only possible cause. I am attaching a content policy for testing - download it into the components directory of your Minefield, make sure components are re-registered and enjoy the memory leak.
Flags: blocking1.9?
Keywords: mlk
Attachment #291344 -
Attachment mime type: application/octet-stream → text/plain
Assignee: nobody → peterv
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
Assignee | ||
Comment 1•17 years ago
|
||
Attachment #291543 -
Flags: superreview?(jonas)
Attachment #291543 -
Flags: review?(jonas)
Attachment #291543 -
Flags: superreview?(jonas)
Attachment #291543 -
Flags: superreview+
Attachment #291543 -
Flags: review?(jonas)
Attachment #291543 -
Flags: review+
Attachment #291543 -
Flags: approval1.9+
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M10
Blocks: 406840
Reporter | ||
Comment 2•17 years ago
|
||
Confirmed, no more leaks with 20071205 nightly build.
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•