Bug 1341898 - Make nsDocument::IsWebComponentsEnabled use a cached bool pref;

Note: Minus IPC bit.

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-04 13:07:48 -05:00 committed by Roy Tam
commit d662ddd6b6
4 changed files with 12 additions and 4 deletions

View file

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