From 88925e150bbcb64d1787b374c2115e6e28c3f6df Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 4 Jan 2020 13:20:19 -0500 Subject: Bug 1357002 - Part 2: Don't call SetupCustomElement() if the custom element feature is pref-ed off; Tag UXP Issue #1344 --- dom/html/nsHTMLContentSink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dom') 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&& return NS_ERROR_OUT_OF_MEMORY; } - if (isCustomElementName || aIs) { + if (CustomElementRegistry::IsCustomElementEnabled() && + (isCustomElementName || aIs)) { nsContentUtils::SetupCustomElement(*aResult, aIs); } -- cgit v1.2.3