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:
mrbkap%gmail.com 2005-09-16 00:19:14 +00:00
Родитель 0b6e710a73
Коммит 3b6ca355e9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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