Closed
Bug 490068
Opened 15 years ago
Closed 15 years ago
leak window after showing bookmarks panel
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
VERIFIED
FIXED
Firefox 3.6a1
People
(Reporter: dbaron, Assigned: asaf)
Details
(Keywords: memory-leak, verified1.9.1)
Attachments
(1 file, 1 obsolete file)
6.44 KB,
patch
|
Details | Diff | Splinter Review |
We leak a JS object, and the window object that contains it, after showing the bookmarks panel. Steps to reproduce: * install leak-monitor from https://addons.mozilla.org/en-US/firefox/addon/2490 * go to a page * press Ctrl+D to bookmark (key probably varies by platform); this still works if the page is already bookmarked * click the "Done" button Expected results: no leak alerts Actual results: leak alerting me to the fact that the anonymous transaction object created on lines 220-229 of: http://hg.mozilla.org/mozilla-central/annotate/e44b672c7e4d/browser/base/content/browser-places.js has been leaked (which also means the window containing it has been leaked). Note that the same code is duplicated in browser/components/places/content/bookmarkProperties.js, lines 451-460. (Note that my build has patches to cycle collect the transaction manager, so I'd have thought that might have helped... though maybe this particular transaction manager isn't itself reachable through edges known to the cycle collector.)
Assignee | ||
Comment 1•15 years ago
|
||
Taking.
Assignee: nobody → mano
Status: NEW → ASSIGNED
Flags: wanted1.9.0.x?
Flags: blocking-firefox3.5?
Updated•15 years ago
|
Flags: blocking-firefox3.5? → blocking-firefox3.5+
Comment 2•15 years ago
|
||
Mano: any progress update?
Updated•15 years ago
|
Whiteboard: [eta 5/12]
Assignee | ||
Updated•15 years ago
|
Whiteboard: [eta 5/12] → [eta 17/5]
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #377931 -
Flags: review?(dietrich)
Comment 4•15 years ago
|
||
Comment on attachment 377931 [details] [diff] [review] patch This seems fine, r=me. Since this affects all batched Places transactions, please verify that this code path is already tested, or add a new test, before landing.
Attachment #377931 -
Flags: review?(dietrich) → review+
Updated•15 years ago
|
Whiteboard: [eta 17/5] → [has patch][has review][needs test]
Comment 5•15 years ago
|
||
Why does it leak at window scope, though?
Reporter | ||
Comment 6•15 years ago
|
||
If the transaction manager lives longer than the window (does it?), then it would keep objects in the window alive past when the window is closed, and thus keep the window alive. (This would also risk triggering the XPConnect assertions about calling through XPConnect objects on a window without a Components object.)
Assignee | ||
Comment 7•15 years ago
|
||
The transaction manager is a service, and thus lives longer than the window. I cannot see which object is created in the window scope here.
Assignee | ||
Comment 8•15 years ago
|
||
(In reply to comment #5) > Why does it leak at window scope, though? See bug 376004 (or better, bug 168411).
Assignee | ||
Comment 9•15 years ago
|
||
_Ah_ I read dbaron's comment wrong and thus didn't realize it's answering robert's comments.
Assignee | ||
Comment 10•15 years ago
|
||
Attachment #377931 -
Attachment is obsolete: true
Assignee | ||
Comment 11•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/18accb6d014c http://hg.mozilla.org/releases/mozilla-1.9.1/rev/deb60868e6b1
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: fixed1.9.1
Resolution: --- → FIXED
Whiteboard: [has patch][has review][needs test]
Comment 12•15 years ago
|
||
(In reply to comment #11) > http://hg.mozilla.org/mozilla-central/rev/18accb6d014c A change to build/wince/tools/Makefile slipped in there again.
Comment 13•15 years ago
|
||
(In reply to comment #12) > A change to build/wince/tools/Makefile slipped in there again. The change of build/wince/tools/Makefile apparently breaks WinCE build. Please back out it.
Assignee | ||
Comment 14•15 years ago
|
||
Fixed.
Updated•15 years ago
|
Flags: in-testsuite+
Comment 15•15 years ago
|
||
Marking verified fixed on trunk and 1.9.1 based on none failed tests or backouts.
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
OS: Linux → All
Hardware: x86 → All
Target Milestone: --- → Firefox 3.6a1
Comment 16•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Assignee | ||
Updated•11 years ago
|
Flags: wanted1.9.0.x?
You need to log in
before you can comment on or make changes to this bug.
Description
•