Closed
Bug 610571
Opened 14 years ago
Closed 14 years ago
Leak with crazy iframe testcase
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: smaug)
Details
(Keywords: memory-leak, testcase, Whiteboard: [hardblocker])
Attachments
(5 files, 1 obsolete file)
711 bytes,
text/html
|
Details | |
840 bytes,
patch
|
Details | Diff | Splinter Review | |
7.51 KB,
patch
|
Details | Diff | Splinter Review | |
1.01 KB,
patch
|
Details | Diff | Splinter Review | |
2.36 KB,
patch
|
Details | Diff | Splinter Review |
Steps: 1. Run with XPCOM_MEM_LEAK_LOG=2 2. Load the testcase. 3. Quit. Result: * trace-refcnt reports leaks (8 nsGlobalWindow, 19 nsDocument, 2 nsDocShell)
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Comment 1•14 years ago
|
||
Peter, this may be worth looking into as you're debugging similar leaks. Not sure this is strictly a blocker, but blocking for now.
Assignee: nobody → peterv
blocking2.0: ? → final+
Updated•14 years ago
|
Whiteboard: hardblocker
Comment 2•14 years ago
|
||
The test case seems to leak in 1.9.1 and 1.9.2 too.
Updated•14 years ago
|
Whiteboard: hardblocker → [hardblocker]
Assignee | ||
Comment 4•14 years ago
|
||
The testcase causes this assertion to fire.
Assignee | ||
Comment 5•14 years ago
|
||
We probably should do this, though we should perhaps also traverse docshell's mScriptGlobal and mContentViewer (and make DocumentViewerImpl ccollectable).
Assignee | ||
Comment 6•14 years ago
|
||
Comment on attachment 502221 [details] [diff] [review] Don't load if the owner document isn't active Boris, what do you think about this. We sure shouldn't try to load the frame if ownerDoc has already been removed from its docshell.
Attachment #502221 -
Flags: review?(bzbarsky)
Comment 7•14 years ago
|
||
So, this patch should correspond to what Olli suggests in comment 5 but it's crashing :( Whatever the reason of this crash is, I guess we should stay with Olli's patch for Firefox 4 given that this is fixing the issue and this patch is changing nsIDocShell uuid.
Comment 8•14 years ago
|
||
Assigning the bug to Olli given that he has a working and simple patch.
Assignee: mounir.lamouri → Olli.Pettay
Comment 9•14 years ago
|
||
Comment on attachment 502221 [details] [diff] [review] Don't load if the owner document isn't active This looks fine to me, but the comment needs changing a bit. r=me with that.
Attachment #502221 -
Flags: review?(bzbarsky) → review+
Comment 10•14 years ago
|
||
Oh, and can you add a test?
Assignee | ||
Comment 11•14 years ago
|
||
Attachment #502221 -
Attachment is obsolete: true
Assignee | ||
Comment 12•14 years ago
|
||
I hope I can use Jesse's test as a chashtest
Assignee | ||
Comment 13•14 years ago
|
||
crashtest
Assignee | ||
Comment 14•14 years ago
|
||
Assignee | ||
Comment 15•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/cee083078957
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
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
•