Bug 18553, better fix which should cause fewer problems. Clear event listeners
before every document load, including the first, except when setNewDocument is called from document.open. r=heikki, sr=jst git-svn-id: svn://10.0.0.236/trunk@104371 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2105,7 +2105,7 @@ nsHTMLDocument::OpenCommon(nsIURI* aSourceURL)
|
||||
nsCOMPtr<nsIDOMDocument> kungFuDeathGrip =
|
||||
do_QueryInterface((nsIHTMLDocument*)this);
|
||||
|
||||
result = mScriptGlobalObject->SetNewDocument(kungFuDeathGrip);
|
||||
result = mScriptGlobalObject->SetNewDocument(kungFuDeathGrip, PR_FALSE);
|
||||
|
||||
if (NS_FAILED(result))
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user