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)

View file

@ -209,4 +209,4 @@ load 1230422.html
load 1251361.html
load 1304437.html
pref(clipboard.autocopy,true) load 1385272-1.html
pref(dom.webcomponents.enabled,true) load 1341693.html
pref(dom.webcomponents.customelements.enabled,true) load 1341693.html

View file

@ -47,7 +47,7 @@ test();
// test with webcomponents disabled
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv(
{ 'set': [["dom.webcomponents.enabled", false]]}, runTest);
{ 'set': [["dom.webcomponents.customelements.enabled", false]]}, runTest);
</script>
</pre>