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