Bug 1357002 - Part 1: Cache dom.webcomponents.customelements.enabled preference;

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-04 13:19:01 -05:00 committed by Roy Tam
commit 979d2bfb96
3 changed files with 9 additions and 1 deletions

View file

@ -171,7 +171,7 @@ NS_INTERFACE_MAP_END
/* static */ bool
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
{
return Preferences::GetBool("dom.webcomponents.customelements.enabled") ||
return nsContentUtils::IsCustomElementsEnabled() ||
nsContentUtils::IsWebComponentsEnabled();
}