Closed Bug 346381 Opened 19 years ago Closed 18 years ago

Global reference to DOM node near event handler makes Firefox leak DOMWindows and documents

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
major

Tracking

()

RESOLVED WORKSFORME
mozilla1.9alpha8

People

(Reporter: jruderman, Assigned: jst)

Details

(Keywords: memory-leak, regression, testcase)

Attachments

(1 file)

Loading this testcase makes Firefox leak DOMWindows and documents. Mac trunk debug, clean profile.
Attached file testcase
This only leaks if you close the window while the testcase is loaded in it. It doesn't leak if you first navigate away to another page. I remember a previous case where I had significant trouble convincing myself we'd hit the JS_ClearScope reliably for an inner window when closing an outer; this makes me think we don't.
OS: Mac OS X 10.4 → All
Hardware: Macintosh → All
Maybe even related to a recently-removed JS_ClearScope, since I don't see it on the 1.8 branch.
Flags: blocking1.9a1?
Keywords: regression
Flags: blocking1.9a1? → blocking1.9+
Target Milestone: --- → mozilla1.9beta1
Anyone still seeing this leak? I don't see it on Linux.
I don't see the leak with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.5pre) Gecko/20070705 BonEcho/2.0.0.5pre or Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a7pre) Gecko/2007070604 Minefield/3.0a7pre ID:2007070604
WFM, Mac trunk debug.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Crashtest checked in.
Flags: in-testsuite+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: