From 9abc9b2b785f14f545429076b854c454640e4d46 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 4 Jan 2020 13:19:01 -0500 Subject: Bug 1357002 - Part 1: Cache dom.webcomponents.customelements.enabled preference; Tag UXP Issue #1344 --- dom/base/CustomElementRegistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/base/CustomElementRegistry.cpp') diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp index 1743779f0..75477dbaa 100644 --- a/dom/base/CustomElementRegistry.cpp +++ b/dom/base/CustomElementRegistry.cpp @@ -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(); } -- cgit v1.2.3