Bug 1414490 - Permanently undefine the insertion point at EOF. r=smaug.

MozReview-Commit-ID: Kijs3Rxhq0X
This commit is contained in:
Henri Sivonen
2017-11-12 20:12:31 +02:00
parent ecdefbb7e6
commit d24b8ac365
4 changed files with 54 additions and 16 deletions

View File

@@ -1974,8 +1974,11 @@ nsHTMLDocument::WriteCommon(JSContext *cx,
mDocumentURI);
return NS_OK;
}
// The spec doesn't tell us to ignore opens from here, but we need to
// ensure opens are ignored here.
IgnoreOpensDuringUnload ignoreOpenGuard(this);
mParser->Terminate();
NS_ASSERTION(!mParser, "mParser should have been null'd out");
MOZ_RELEASE_ASSERT(!mParser, "mParser should have been null'd out");
}
if (!mParser) {