Fixing security bug 134315. Make sure we clear the JS scope in cases where it's needed. r=mstoltz@netscape.com, sr=brendan@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@124818 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2002-07-09 02:49:58 +00:00
parent 8291b6d5c8
commit ce2c73b7b7
8 changed files with 73 additions and 35 deletions

View File

@@ -334,7 +334,7 @@ PluginViewerImpl::StartLoad(nsIRequest* request, nsIStreamListener*& aResult)
mDocument->SetScriptGlobalObject(global);
nsCOMPtr<nsIDOMDocument> domdoc(do_QueryInterface(mDocument));
if (domdoc)
global->SetNewDocument(domdoc, PR_TRUE);
global->SetNewDocument(domdoc, PR_TRUE, PR_TRUE);
}
}