зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
0b6e710a73
Коммит
3b6ca355e9
|
@ -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.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче