Prevent onunloads from bubbling.
git-svn-id: svn://10.0.0.236/trunk@31958 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2335,7 +2335,8 @@ nsWebShell::OnStartDocumentLoad(nsIDocumentLoader* loader,
|
||||
nsIDocumentViewer* docViewer;
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
|
||||
if (nsnull != mScriptGlobal) {
|
||||
if ((nsnull != mScriptGlobal) &&
|
||||
(loader == mDocLoader)) {
|
||||
if (nsnull != mContentViewer &&
|
||||
NS_OK == mContentViewer->QueryInterface(kIDocumentViewerIID, (void**)&docViewer)) {
|
||||
nsIPresContext *presContext;
|
||||
|
||||
Reference in New Issue
Block a user