Bug 1632975 - Run microtask checkpoint before processing script. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D162261
This commit is contained in:
@@ -1186,13 +1186,6 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user