mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +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
|
||||
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
|
||||
{
|
||||
return nsContentUtils::IsCustomElementsEnabled() ||
|
||||
nsContentUtils::IsWebComponentsEnabled();
|
||||
return nsContentUtils::IsCustomElementsEnabled();
|
||||
}
|
||||
|
||||
CustomElementRegistry::CustomElementRegistry(nsPIDOMWindowInner* aWindow)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue