Closed Bug 1249795 Opened 8 years ago Closed 8 years ago

Clear strong refs to message managers once we've destroyed nsFrameLoader

Categories

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

36 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch clear_mm.diff (obsolete) — Splinter Review
Destroying frameloader does clear references like mDocShell, but we keep message managers alive, even though we've called Disconnect() on them.

There are cases when JS keeps nsFrameLoader objects alive too long, which leads to keeping 
also other stuff alive too long.

This is possibly helping with bug 1195295.

I think I need to do a try: -a with the patch though.
Attachment #8721508 - Flags: review?(wmccloskey)
Attachment #8721508 - Flags: feedback?(mconley)
(and I want to clear them both after they both have been disconnected.)
Attached patch clear_mm.diffSplinter Review
same without some windows line endings which pastebin decided to add to the patch.
Attachment #8721508 - Attachment is obsolete: true
Attachment #8721508 - Flags: review?(wmccloskey)
Attachment #8721508 - Flags: feedback?(mconley)
Attachment #8721515 - Flags: review?(wmccloskey)
Attachment #8721515 - Flags: feedback?(mconley)
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4751f0a01194

(hopefully the patch I just landed to m-i doesn't burn the tree)
Attachment #8721515 - Flags: review?(wmccloskey) → review+
Comment on attachment 8721515 [details] [diff] [review]
clear_mm.diff

Review of attachment 8721515 [details] [diff] [review]:
-----------------------------------------------------------------

Makes sense to me. Thanks for looking into this, smaug!
Attachment #8721515 - Flags: feedback?(mconley) → feedback+
https://hg.mozilla.org/mozilla-central/rev/443a0e286032
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
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: