From 8845072107e52dc1df01d9df8b1027bc254b7417 Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Fri, 16 Sep 2005 00:19:14 +0000 Subject: [PATCH] bug 264811: Only null out mParser when we're sure that we're not going to be handling any more document.writes(). r=jst sr=brendan git-svn-id: svn://10.0.0.236/trunk@180340 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLDocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index bc11e68a4fd..546330f3ac4 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -926,7 +926,7 @@ nsHTMLDocument::DocumentWriteTerminationFunc(nsISupports *aRef) // cancel the load that was initiated by the location="..." in the // script that was written out by document.write(). - if (!htmldoc->mIsWriting) { + if (!htmldoc->mWriteLevel && !htmldoc->mIsWriting) { // Release the documents parser so that the call to EndLoad() // doesn't just return early and set the termination function again.