Bug 332324 crash [@ IsChildOfDomWindow]

r=kaie sr=bz
This commit is contained in:
timeless%mozdev.org 2006-04-16 20:33:28 +00:00
parent 3292500649
commit 49bf45af40

View File

@ -376,6 +376,13 @@ nsSecureBrowserUIImpl::Notify(nsIContent* formNode,
nsCOMPtr<nsIDOMWindow> postingWindow =
do_QueryInterface(document->GetWindow());
// We can't find this document's window, cancel it.
if (!postingWindow)
{
NS_WARNING("If you see this and can explain why it should be allowed, note in Bug 332324");
*cancelSubmit = PR_TRUE;
return NS_OK;
}
PRBool isChild;
IsChildOfDomWindow(mWindow, postingWindow, &isChild);