bug 319123: document.close in an external script that is being document.written doesn't close the document and leaks parsers and content sinks and documents. r+sr=jst

This commit is contained in:
mrbkap%gmail.com 2005-12-09 18:50:59 +00:00
parent b70bcab696
commit c44ffb682c

View File

@ -2149,6 +2149,7 @@ nsHTMLDocument::Close()
}
--mWriteLevel;
mIsWriting = 0;
mParser->Terminate();
mParser = nsnull;
// XXX Make sure that all the document.written content is