mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 1357002 - Part 2: Don't call SetupCustomElement() if the custom element feature is pref-ed off;
Tag UXP Issue #1344
This commit is contained in:
parent
979d2bfb96
commit
5ad5f4e1ec
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue