Don't load anything to frameloader if it isn't in the docshell tree anymore

RESOLVED FIXED

Status

()

Core
DOM
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: smaug, Assigned: smaug)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

6 years ago
Created attachment 539557 [details] [diff] [review]
patch

This is similar to Bug 610571.
Unfortunately I don't have a testcase for this, but this was in my
strong-parent-node patch.

r- if you think I should find some über-strange testcase for this.
Attachment #539557 - Flags: review?(bzbarsky)
Comment on attachment 539557 [details] [diff] [review]
patch

>--- a/content/base/src/nsFrameLoader.cpp
>+++ b/content/base/src/nsFrameLoader.cpp
>   nsCOMPtr<nsISupports> container =
>     doc->GetContainer();
>   nsCOMPtr<nsIWebNavigation> parentAsWebNav = do_QueryInterface(container);
>+  NS_ENSURE_STATE(container);

Wouldn't you want to check parentAsWebNav here?
(Assignee)

Comment 2

6 years ago
Created attachment 539613 [details] [diff] [review]
fixed
Attachment #539557 - Attachment is obsolete: true
Attachment #539557 - Flags: review?(bzbarsky)
Attachment #539613 - Flags: review?(bzbarsky)
Comment on attachment 539613 [details] [diff] [review]
fixed

Yeah, I think this is ok.
Attachment #539613 - Flags: review?(bzbarsky) → review+
(Assignee)

Comment 4

6 years ago
http://hg.mozilla.org/mozilla-central/rev/cab0115bbc48
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.