Bug 1400762 - Make dom.webcomponents.enabled pref doesn't control CustomElements feature

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-20 19:11:20 -05:00 committed by Roy Tam
commit 33693080a5
3 changed files with 3 additions and 4 deletions

View file

@ -258,8 +258,7 @@ NS_INTERFACE_MAP_END
/* static */ bool
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
{
return nsContentUtils::IsCustomElementsEnabled() ||
nsContentUtils::IsWebComponentsEnabled();
return nsContentUtils::IsCustomElementsEnabled();
}
CustomElementRegistry::CustomElementRegistry(nsPIDOMWindowInner* aWindow)