Backed out changeset dd72eb737d96 (bug 1632975) for causing Bug 1800981 CLOSED TREE

This commit is contained in:
Cristian Tuns
2022-11-16 19:15:14 -05:00
parent 8af3845b35
commit 1c2ac70ddb
4 changed files with 13 additions and 60 deletions

View File

@@ -1186,6 +1186,13 @@ bool ScriptLoader::ProcessInlineScript(nsIScriptElement* aElement,
}
}
{
// We must perform a microtask checkpoint when inserting script elements
// as specified by: https://html.spec.whatwg.org/#parsing-main-incdata
// For the non-inline module cases this happens in ProcessRequest.
mozilla::nsAutoMicroTask mt;
}
// This calls OnFetchComplete directly since there's no need to start
// fetching an inline script.
nsresult rv = modReq->OnFetchComplete(NS_OK);