Issue #618 - Don't preload nomodule scripts when modules are enabled

Ref: BZ 1382020
This commit is contained in:
Gaming4JC
2020-08-26 11:19:42 -04:00
parent b78f53ffb0
commit 38d13e2779
8 changed files with 57 additions and 18 deletions
+4 -2
View File
@@ -923,14 +923,16 @@ nsHtml5TreeOpExecutor::PreloadScript(const nsAString& aURL,
const nsAString& aIntegrity,
bool aScriptFromHead,
bool aAsync,
bool aDefer)
bool aDefer,
bool aNoModule)
{
nsCOMPtr<nsIURI> uri = ConvertIfNotPreloadedYet(aURL);
if (!uri) {
return;
}
mDocument->ScriptLoader()->PreloadURI(uri, aCharset, aType, aCrossOrigin,
aIntegrity, aScriptFromHead, aAsync, aDefer,
aIntegrity, aScriptFromHead, aAsync,
aDefer, aNoModule,
mSpeculationReferrerPolicy);
}