Memoryleak when deleting a bookmark or folder




12 years ago
9 years ago


(Reporter: stevee, Unassigned)


({memory-leak, regression})

Windows 2000
memory-leak, regression
Bug Flags:
blocking-firefox3 +

Firefox Tracking Flags

(Not tracked)




12 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a6pre) Gecko/20070620 Minefield/3.0a6pre ID:2007062013

1. New profile, start Firefox with leak logging
2. Close Firefox, then restart it with leak logging enabled (so bug 385045 doesn't pollute the report)
3. Go to the bookmarks menu, right click on a bookmark or folder, choose delete
4. Close Firefox
5. Analyze log

Leaked outer window 1c9b0f0 at address 1c9b0f0.
Leaked inner window 1c83960 (outer 1c9b0f0) at address 1c83960.
 ... with URI "about:blank".
Leaked 2 out of 7 DOM Windows
Leaked 0 out of 38 documents
Leaked 0 out of 3 docshells

This is different from bug 337190 i think.

Comment 1

12 years ago
I think the same leaks occurs if you add a new bookmark too (I reproduced by dragging and dropping a hyperlink to the bookmarks toolbar, and d&d'ng the favicon from the URL bar to the bookmarks toolbar)


12 years ago
Flags: blocking-firefox3? → blocking-firefox3+

Comment 2

12 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a7pre) Gecko/2007071605 Minefield/3.0a7pre ID:2007071605
I can't see any more leaking when adding bookmarks, or deleting them whilst using the Bookmarks Manager. --> FIXED by bug 376004
Last Resolved: 12 years ago
Resolution: --- → FIXED

Comment 3

12 years ago
Steve, you originally reported this leak when deleting from the Bookmarks Menu.  I can still reproduce leaks there. I can confirm that from the bookmarks organizer deleting bookmarks is not producing leaks.
Resolution: FIXED → ---

Comment 4

12 years ago
Tracy what kind of leakage are you seeing? Originally when I filed this I was seeing a couple of things leaked (which were also leaked when using the BM iirc). There has been new leakage introduced recently which I filed as bug 388297; is this what you're seeing?

Comment 5

12 years ago
Yep, that's what I'm seeing, sorry about that.
Last Resolved: 12 years ago12 years ago
Resolution: --- → FIXED

Comment 6

12 years ago
No probs. I should have explained things better :)

Comment 7

12 years ago
verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7pre) Gecko/2007071705 Minefield/3.0a7pre.  now seeing 388297

Thanks stevee
How do you know this bug is fixed, rather than that there aren't two bugs causing the same objects to leak?

Comment 9

12 years ago
I suppose we don't. Pre bug 376004 using the Bookmarks Manager to delete a bookmark resulted in 5 DOM Windows Leaked; post bug 376004 nothing is reported to leak.

But of course this bug was filed against deleting a bookmark from the bookmarks toolbar or bookmarks menu, but now, because of bug 388297, there's currently no way to directly test if this leak has indeed been fixed.

So should this bug be reopened and marked to depend on bug 388297 so when that is fixed this can be retested?
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.

Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.