summaryrefslogtreecommitdiffstats
path: root/parser/html/nsHtml5TreeBuilderCppSupplement.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-08-27 06:05:23 +0000
committerGitHub <noreply@github.com>2020-08-27 06:05:23 +0000
commit8924e4ddd3d0b463ed3694fb788df9928d4e7dd5 (patch)
tree0ad8a4f6fec94a7f1fef8baed17c696578239e67 /parser/html/nsHtml5TreeBuilderCppSupplement.h
parentb78f53ffb09a6aae6dbdc069c7cdd42d11b5eed2 (diff)
parent0f433fc7c53debcda7c853df0bff9e9da7ded067 (diff)
downloadUXP-8924e4ddd3d0b463ed3694fb788df9928d4e7dd5.tar
UXP-8924e4ddd3d0b463ed3694fb788df9928d4e7dd5.tar.gz
UXP-8924e4ddd3d0b463ed3694fb788df9928d4e7dd5.tar.lz
UXP-8924e4ddd3d0b463ed3694fb788df9928d4e7dd5.tar.xz
UXP-8924e4ddd3d0b463ed3694fb788df9928d4e7dd5.zip
Merge pull request #1637 from g4jc/618
Don't preload nomodule scripts when modules are enabled
Diffstat (limited to 'parser/html/nsHtml5TreeBuilderCppSupplement.h')
-rw-r--r--parser/html/nsHtml5TreeBuilderCppSupplement.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/parser/html/nsHtml5TreeBuilderCppSupplement.h b/parser/html/nsHtml5TreeBuilderCppSupplement.h
index 634c5c218..f09cc1853 100644
--- a/parser/html/nsHtml5TreeBuilderCppSupplement.h
+++ b/parser/html/nsHtml5TreeBuilderCppSupplement.h
@@ -189,15 +189,18 @@ nsHtml5TreeBuilder::createElement(int32_t aNamespace,
aAttributes->contains(nsHtml5AttributeName::ATTR_ASYNC);
bool defer =
aAttributes->contains(nsHtml5AttributeName::ATTR_DEFER);
+ bool noModule =
+ aAttributes->contains(nsHtml5AttributeName::ATTR_NOMODULE);
mSpeculativeLoadQueue.AppendElement()->InitScript(
url,
charset,
type,
crossOrigin,
integrity,
- mode == nsHtml5TreeBuilder::IN_HEAD,
+ mode == nsHtml5TreeBuilder::IN_HEAD,
async,
- defer);
+ defer,
+ noModule);
mCurrentHtmlScriptIsAsyncOrDefer = async || defer;
}
} else if (nsHtml5Atoms::link == aName) {
@@ -303,7 +306,8 @@ nsHtml5TreeBuilder::createElement(int32_t aNamespace,
integrity,
mode == nsHtml5TreeBuilder::IN_HEAD,
false /* async */,
- false /* defer */);
+ false /* defer */,
+ false /* noModule */);
}
} else if (nsHtml5Atoms::style == aName) {
nsHtml5TreeOperation* treeOp = mOpQueue.AppendElement();