summaryrefslogtreecommitdiffstats
path: root/parser/html/nsHtml5TreeOpExecutor.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-08-30 22:10:17 -0400
committerMoonchild <moonchild@palemoon.org>2020-09-05 18:45:45 +0000
commit9c515323ff6cc0dc42b9ee64397f297b7566d0a4 (patch)
treed810127ed7385efe0defd15b9da1c770663fa541 /parser/html/nsHtml5TreeOpExecutor.cpp
parentc2b91aaf8cbb8f263bb335d4e6b8c37de72cfc14 (diff)
downloadUXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar
UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar.gz
UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar.lz
UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.tar.xz
UXP-9c515323ff6cc0dc42b9ee64397f297b7566d0a4.zip
Issue #618 - Don't preload nomodule scripts when modules are enabled (uplift)
Diffstat (limited to 'parser/html/nsHtml5TreeOpExecutor.cpp')
-rw-r--r--parser/html/nsHtml5TreeOpExecutor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/parser/html/nsHtml5TreeOpExecutor.cpp b/parser/html/nsHtml5TreeOpExecutor.cpp
index 9be7f3b0d..cd5c68913 100644
--- a/parser/html/nsHtml5TreeOpExecutor.cpp
+++ b/parser/html/nsHtml5TreeOpExecutor.cpp
@@ -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);
}