diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index aa51d969387..0fafce2ba51 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -673,7 +673,7 @@ nsDocShell::LoadURI(nsIURI * aURI, PRUint32 aLoadFlags, PRBool aFirstParty) { - if (mFiredUnloadEvent) { + if (!IsNavigationAllowed()) { return NS_OK; // JS may not handle returning of an error code } nsresult rv;