mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
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:
parent
5ba5af588b
commit
0ebdc5cd60
@ -6705,6 +6705,7 @@ void Document::TryCancelFrameLoaderInitialization(nsIDocShell* aShell) {
|
||||
|
||||
void Document::SetPrototypeDocument(nsXULPrototypeDocument* aPrototype) {
|
||||
mPrototypeDocument = aPrototype;
|
||||
mSynchronousDOMContentLoaded = true;
|
||||
}
|
||||
|
||||
Document* Document::RequestExternalResource(
|
||||
|
@ -279,7 +279,6 @@ nsresult XULDocument::StartDocumentLoad(const char* aCommand,
|
||||
}
|
||||
|
||||
void XULDocument::EndLoad() {
|
||||
mSynchronousDOMContentLoaded = true;
|
||||
Document::EndLoad();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user