Bug 1418000 - Check mInsertionPointPermanentlyUndefined when checking for executor completion. r=smaug

MozReview-Commit-ID: 2qL822ep5g3
This commit is contained in:
Henri Sivonen
2017-11-21 10:36:31 -05:00
parent e8750a560e
commit 7f309b096c

View File

@@ -624,7 +624,7 @@ nsHtml5Parser::ParseUntilBlocked()
{
nsresult rv = mExecutor->IsBroken();
NS_ENSURE_SUCCESS(rv, rv);
if (mBlocked || mExecutor->IsComplete()) {
if (mBlocked || mInsertionPointPermanentlyUndefined || mExecutor->IsComplete()) {
return NS_OK;
}
NS_ASSERTION(mExecutor->HasStarted(), "Bad life cycle.");