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:
mstoltz%netscape.com
2001-10-02 00:54:44 +00:00
parent 502a151df4
commit 44c4e93b04
10 changed files with 26 additions and 15 deletions

View File

@@ -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;