Bug 1332569. r=bzbarsky a=dveditz
authorTimothy Nikkel <tnikkel@gmail.com>
Thu, 26 Jan 2017 15:27:27 -0600
changeset 377975 bfd739f11ec69a228b01823577a6482a3ff9cc9a
parent 377974 918d36ef8b13b8965912e2133afa6177f2ae8ed5
child 377976 86c2de8ec8d1741d9fa27cb8707bfd8248d5d1e0
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky, dveditz
bugs1332569
milestone53.0a2
Bug 1332569. r=bzbarsky a=dveditz
dom/xslt/xslt/txMozillaXMLOutput.cpp
--- a/dom/xslt/xslt/txMozillaXMLOutput.cpp
+++ b/dom/xslt/xslt/txMozillaXMLOutput.cpp
@@ -792,16 +792,17 @@ txMozillaXMLOutput::createResultDocument
         rv = NS_NewXMLDocument(getter_AddRefs(mDocument),
                                aLoadedAsData);
         NS_ENSURE_SUCCESS(rv, rv);
     }
     // This should really be handled by nsIDocument::BeginLoad
     MOZ_ASSERT(mDocument->GetReadyStateEnum() ==
                nsIDocument::READYSTATE_UNINITIALIZED, "Bad readyState");
     mDocument->SetReadyStateInternal(nsIDocument::READYSTATE_LOADING);
+    mDocument->SetMayStartLayout(false);
     nsCOMPtr<nsIDocument> source = do_QueryInterface(aSourceDocument);
     NS_ENSURE_STATE(source);
     bool hasHadScriptObject = false;
     nsIScriptGlobalObject* sgo =
       source->GetScriptHandlingObject(hasHadScriptObject);
     NS_ENSURE_STATE(sgo || !hasHadScriptObject);
 
     mCurrentNode = mDocument;