Closed Bug 946641 Opened 11 years ago Closed 11 years ago

Drop delayed events associated with a document when it's closed

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28
Tracking Status
firefox28 --- fixed

People

(Reporter: shu, Assigned: shu)

References

Details

(Whiteboard: [qa-])

Attachments

(2 files, 1 obsolete file)

No reason for delayed events to hold documents alive, since it's pretty hard get right in chrome JS to make sure we don't race the call to unsuppress with tab/window closures.
Blocks: 933950
Attachment #8343006 - Flags: review?(bugs)
Assignee: nobody → shu
Status: NEW → ASSIGNED
Left in a superfluous change in the last version.
Attachment #8343009 - Flags: review?(bugs)
Attachment #8343006 - Attachment is obsolete: true
Attachment #8343006 - Flags: review?(bugs)
Comment on attachment 8343009 [details] [diff] [review] Clear delayed events on closed documents. This may overlap some stuff mrbkap has been doing lately. Update uuid of nsIFocusManager
Attachment #8343009 - Flags: review?(bugs) → review+
Comment on attachment 8343315 [details] [diff] [review] Part 2: Revert in Debugger frontend to balance event suppression/unsuppression. Review of attachment 8343315 [details] [diff] [review]: ----------------------------------------------------------------- I haven't tested the patch as it needs some rebasing, but does this fix the leak? If so, this is great! ::: browser/devtools/debugger/test/browser.ini @@ +85,5 @@ > [browser_dbg_breakpoints-pane.js] > [browser_dbg_chrome-debugging.js] > [browser_dbg_clean-exit-window.js] > # Disabled because of leaks - See Bug 933950. > +#skip-if = true Just remove both comment lines. ::: toolkit/devtools/server/actors/webbrowser.js @@ -797,5 @@ > postNest: function BTA_postNest(aNestData) { > if (!this.window) { > // The tab is already closed. > - dbg_assert(this._nestedEventLoopDepth === 0, > - "window shouldn't be closed before all nested event loops have been popped"); You will also have to revert my changes from bug 942931 here.
Attachment #8343315 - Flags: review?(past) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Shu, are you going to uplift this fix to beta (Firefox 27)? The hang-on-close in bug 942931 is still present there.
Flags: needinfo?(shu)
(In reply to Panos Astithas [:past] from comment #8) > Shu, are you going to uplift this fix to beta (Firefox 27)? The > hang-on-close in bug 942931 is still present there. To uplift this to beta without re-causing the leaks, we will also need to uplift: - bug 951413 (me) - bug 933483 (mrbkap) NI mrbkap for status of uplift.
Flags: needinfo?(shu) → needinfo?(mrbkap)
(In reply to Shu-yu Guo [:shu] from comment #9) > - bug 933483 (mrbkap) Note that bug 933483 caused bug 959585 (and bug 956704). It was already uplifted to Aurora, but we shouldn't uplift it to beta (for sure) until we shake out the rest of the regressions.
Flags: needinfo?(mrbkap)
Whiteboard: [qa-]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: