Open Bug 552136 Opened 15 years ago Updated 3 years ago

Create a reliable tear-down hook for nsGlobalWindow

Categories

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

enhancement

Tracking

()

People

(Reporter: mozilla+ben, Unassigned)

References

Details

The logic for cleaning up nsGlobalWindows is spread over several different methods, including but not limited to SetDocShell, ~nsGlobalWindow, and CleanUp. A consolidation of these methods was attempted in bug 523885, but the consolidation led to mochitest failures. Since the consolidation was not necessary to fix bug 523885, I decided to postpone it. This is the followup bug.
Depends on: 523885
Assignee: nobody → bnewman
Slightly re-purposing this bug. More important than having a consolidated CleanUp method is having a single bottleneck that is always called when the window is torn down, but called only once per window.
Summary: Consolidate CleanUp-related methods in nsGlobalWindow.cpp → Create a reliable tear-down hook for nsGlobalWindow
And ideally is called before the dtor (so it can tell people to drop refs).
Component: DOM → DOM: Core & HTML

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: mozilla+ben → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.