Bug 1357002 - Part 2: Don't call SetupCustomElement() if the custom element feature is pref-ed off; r=wchen
This commit is contained in:
@@ -263,7 +263,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user