summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 13:20:19 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:16 -0500
commit88925e150bbcb64d1787b374c2115e6e28c3f6df (patch)
tree33bafcf3974d81d04adf42226e40d3458522e23d /dom
parent9abc9b2b785f14f545429076b854c454640e4d46 (diff)
downloadUXP-88925e150bbcb64d1787b374c2115e6e28c3f6df.tar
UXP-88925e150bbcb64d1787b374c2115e6e28c3f6df.tar.gz
UXP-88925e150bbcb64d1787b374c2115e6e28c3f6df.tar.lz
UXP-88925e150bbcb64d1787b374c2115e6e28c3f6df.tar.xz
UXP-88925e150bbcb64d1787b374c2115e6e28c3f6df.zip
Bug 1357002 - Part 2: Don't call SetupCustomElement() if the custom element feature is pref-ed off;
Tag UXP Issue #1344
Diffstat (limited to 'dom')
-rw-r--r--dom/html/nsHTMLContentSink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/html/nsHTMLContentSink.cpp b/dom/html/nsHTMLContentSink.cpp
index 6e808f87e..bba5d38ab 100644
--- a/dom/html/nsHTMLContentSink.cpp
+++ b/dom/html/nsHTMLContentSink.cpp
@@ -265,7 +265,8 @@ NS_NewHTMLElement(Element** aResult, already_AddRefed<mozilla::dom::NodeInfo>&&
return NS_ERROR_OUT_OF_MEMORY;
}
- if (isCustomElementName || aIs) {
+ if (CustomElementRegistry::IsCustomElementEnabled() &&
+ (isCustomElementName || aIs)) {
nsContentUtils::SetupCustomElement(*aResult, aIs);
}