зеркало из https://github.com/mozilla/pjs.git
Bug 332324 crash [@ IsChildOfDomWindow]
r=kaie sr=bz
This commit is contained in:
Родитель
930ceaebd9
Коммит
6768a5a433
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче