mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Bug 1400762 - Make dom.webcomponents.enabled pref doesn't control CustomElements feature
Tag UXP Issue #1344
This commit is contained in:
parent
b70a9b1d12
commit
33693080a5
3 changed files with 3 additions and 4 deletions
|
|
@ -258,8 +258,7 @@ NS_INTERFACE_MAP_END
|
||||||
/* static */ bool
|
/* static */ bool
|
||||||
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
|
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
|
||||||
{
|
{
|
||||||
return nsContentUtils::IsCustomElementsEnabled() ||
|
return nsContentUtils::IsCustomElementsEnabled();
|
||||||
nsContentUtils::IsWebComponentsEnabled();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomElementRegistry::CustomElementRegistry(nsPIDOMWindowInner* aWindow)
|
CustomElementRegistry::CustomElementRegistry(nsPIDOMWindowInner* aWindow)
|
||||||
|
|
|
||||||
|
|
@ -209,4 +209,4 @@ load 1230422.html
|
||||||
load 1251361.html
|
load 1251361.html
|
||||||
load 1304437.html
|
load 1304437.html
|
||||||
pref(clipboard.autocopy,true) load 1385272-1.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
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ test();
|
||||||
// test with webcomponents disabled
|
// test with webcomponents disabled
|
||||||
SimpleTest.waitForExplicitFinish();
|
SimpleTest.waitForExplicitFinish();
|
||||||
SpecialPowers.pushPrefEnv(
|
SpecialPowers.pushPrefEnv(
|
||||||
{ 'set': [["dom.webcomponents.enabled", false]]}, runTest);
|
{ 'set': [["dom.webcomponents.customelements.enabled", false]]}, runTest);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue