Bug 1418000 - Check mInsertionPointPermanentlyUndefined when checking for executor completion. r=smaug
authorHenri Sivonen <hsivonen@hsivonen.fi>
Tue, 21 Nov 2017 10:36:31 -0500
changeset 392861 980f4e0f6dab8ca825d3f34a644dc6db7f37a3f5
parent 392860 03222c0d5cb63dbf7b9939e133380a0d03390aa4
child 392862 6c992f927177a4badf1f3663ce130c6f714ba155
push id97540
push userryanvm@gmail.com
push dateTue, 21 Nov 2017 15:37:05 +0000
treeherdermozilla-inbound@980f4e0f6dab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1418000
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1418000 - Check mInsertionPointPermanentlyUndefined when checking for executor completion. r=smaug MozReview-Commit-ID: 2qL822ep5g3
parser/html/nsHtml5Parser.cpp
--- a/parser/html/nsHtml5Parser.cpp
+++ b/parser/html/nsHtml5Parser.cpp
@@ -619,17 +619,17 @@ nsHtml5Parser::IsScriptCreated()
 /* End nsIParser  */
 
 // not from interface
 nsresult
 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.");
   NS_ASSERTION(!mInDocumentWrite,
     "ParseUntilBlocked entered while in doc.write!");
 
   mDocWriteSpeculatorActive = false;