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
This commit is contained in:
mrbkap%gmail.com
2005-09-16 00:19:14 +00:00
parent 8c04b776b7
commit 8845072107

View File

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