diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-04 13:20:19 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:16 -0500 |
commit | 88925e150bbcb64d1787b374c2115e6e28c3f6df (patch) | |
tree | 33bafcf3974d81d04adf42226e40d3458522e23d /dom | |
parent | 9abc9b2b785f14f545429076b854c454640e4d46 (diff) | |
download | uxp-88925e150bbcb64d1787b374c2115e6e28c3f6df.tar.gz |
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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/html/nsHTMLContentSink.cpp b/dom/html/nsHTMLContentSink.cpp index 6e808f87e8..bba5d38ab2 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); } |