summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 13:07:48 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:15 -0500
commit859fbc139a4c6793ac6ce9112c676ffb1ab8c927 (patch)
treeb34c66d9760857629dc28030d6376535fd65c1f3 /dom/base/CustomElementRegistry.cpp
parentd8109fa9a0aae6ee09eca1d6b5cfab285af318f9 (diff)
downloadUXP-859fbc139a4c6793ac6ce9112c676ffb1ab8c927.tar
UXP-859fbc139a4c6793ac6ce9112c676ffb1ab8c927.tar.gz
UXP-859fbc139a4c6793ac6ce9112c676ffb1ab8c927.tar.lz
UXP-859fbc139a4c6793ac6ce9112c676ffb1ab8c927.tar.xz
UXP-859fbc139a4c6793ac6ce9112c676ffb1ab8c927.zip
Bug 1341898 - Make nsDocument::IsWebComponentsEnabled use a cached bool pref;
Note: Minus IPC bit. Tag UXP Issue #1344
Diffstat (limited to 'dom/base/CustomElementRegistry.cpp')
-rw-r--r--dom/base/CustomElementRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
index c3d25465e..1743779f0 100644
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -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