mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-19 14:39:16 +00:00
Issue #618 - Don't preload nomodule scripts when modules are enabled
Ref: BZ 1382020
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user