Last Comment Bug 664463 - Don't load anything to frameloader if it isn't in the docshell tree anymore
: Don't load anything to frameloader if it isn't in the docshell tree anymore
Product: Core
Classification: Components
Component: DOM (show other bugs)
: unspecified
: x86_64 Linux
-- normal with 1 vote (vote)
: ---
Assigned To: Olli Pettay [:smaug]
: Andrew Overholt [:overholt]
Depends on:
Blocks: strongparent
  Show dependency treegraph
Reported: 2011-06-15 09:19 PDT by Olli Pettay [:smaug]
Modified: 2011-06-15 13:36 PDT (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (1.52 KB, patch)
2011-06-15 09:19 PDT, Olli Pettay [:smaug]
no flags Details | Diff | Splinter Review
fixed (1.53 KB, patch)
2011-06-15 12:17 PDT, Olli Pettay [:smaug]
bzbarsky: review+
Details | Diff | Splinter Review

Description User image Olli Pettay [:smaug] 2011-06-15 09:19:11 PDT
Created attachment 539557 [details] [diff] [review]

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.
Comment 1 User image :Ms2ger (⌚ UTC+1/+2) 2011-06-15 11:00:27 PDT
Comment on attachment 539557 [details] [diff] [review]

>--- 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?
Comment 2 User image Olli Pettay [:smaug] 2011-06-15 12:17:53 PDT
Created attachment 539613 [details] [diff] [review]
Comment 3 User image Boris Zbarsky [:bz] (still a bit busy) 2011-06-15 12:57:06 PDT
Comment on attachment 539613 [details] [diff] [review]

Yeah, I think this is ok.
Comment 4 User image Olli Pettay [:smaug] 2011-06-15 13:36:42 PDT

Note You need to log in before you can comment on or make changes to this bug.