summaryrefslogtreecommitdiffstats
path: root/parser/html/nsHtml5TreeBuilderCppSupplement.h
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/nsHtml5TreeBuilderCppSupplement.h
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/nsHtml5TreeBuilderCppSupplement.h')
-rw-r--r--parser/html/nsHtml5TreeBuilderCppSupplement.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/parser/html/nsHtml5TreeBuilderCppSupplement.h b/parser/html/nsHtml5TreeBuilderCppSupplement.h
index 9709396c7..f0326a20a 100644
--- a/parser/html/nsHtml5TreeBuilderCppSupplement.h
+++ b/parser/html/nsHtml5TreeBuilderCppSupplement.h
@@ -171,6 +171,8 @@ nsHtml5TreeBuilder::createElement(int32_t aNamespace, nsIAtom* aName,
aAttributes->contains(nsHtml5AttributeName::ATTR_ASYNC);
bool defer =
aAttributes->contains(nsHtml5AttributeName::ATTR_DEFER);
+ bool noModule =
+ aAttributes->contains(nsHtml5AttributeName::ATTR_NOMODULE);
mSpeculativeLoadQueue.AppendElement()->InitScript(
url,
charset,
@@ -179,7 +181,8 @@ nsHtml5TreeBuilder::createElement(int32_t aNamespace, nsIAtom* aName,
integrity,
mode == NS_HTML5TREE_BUILDER_IN_HEAD,
async,
- defer);
+ defer,
+ noModule);
mCurrentHtmlScriptIsAsyncOrDefer = async || defer;
}
} else if (nsHtml5Atoms::link == aName) {
@@ -285,7 +288,8 @@ nsHtml5TreeBuilder::createElement(int32_t aNamespace, nsIAtom* aName,
integrity,
mode == NS_HTML5TREE_BUILDER_IN_HEAD,
false /* async */,
- false /* defer */);
+ false /* defer */,
+ false /* noModule */);
}
} else if (nsHtml5Atoms::style == aName) {
nsHtml5TreeOperation* treeOp = mOpQueue.AppendElement();