Bug 1554848 - Use sync DOMContentLoaded when using prototype cache. r=bzbarsky

Some of the talos test timers seem to be affected when DOMContentLoaded
is not dispatched synchronously. This will also help when we load all XUL
as XHTML (bug 1550801), since certain tests rely on sync dispatch.

Differential Revision: https://phabricator.services.mozilla.com/D33211

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brendan Dahl 2019-05-30 21:10:35 +00:00
parent 5ba5af588b
commit 0ebdc5cd60
2 changed files with 1 additions and 1 deletions

View File

@ -6705,6 +6705,7 @@ void Document::TryCancelFrameLoaderInitialization(nsIDocShell* aShell) {
void Document::SetPrototypeDocument(nsXULPrototypeDocument* aPrototype) {
mPrototypeDocument = aPrototype;
mSynchronousDOMContentLoaded = true;
}
Document* Document::RequestExternalResource(

View File

@ -279,7 +279,6 @@ nsresult XULDocument::StartDocumentLoad(const char* aCommand,
}
void XULDocument::EndLoad() {
mSynchronousDOMContentLoaded = true;
Document::EndLoad();
}