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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user