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
r- if you think I should find some über-strange testcase for this.
Comment on attachment 539557 [details] [diff] [review]
> nsCOMPtr<nsISupports> container =
> nsCOMPtr<nsIWebNavigation> parentAsWebNav = do_QueryInterface(container);
Wouldn't you want to check parentAsWebNav here?
Created attachment 539613 [details] [diff] [review]
Comment on attachment 539613 [details] [diff] [review]
Yeah, I think this is ok.