diff --git a/accessible/tests/mochitest/elm/test_shadowroot.html b/accessible/tests/mochitest/elm/test_shadowroot.html index d5f05d263c37..4f5d5eb03356 100644 --- a/accessible/tests/mochitest/elm/test_shadowroot.html +++ b/accessible/tests/mochitest/elm/test_shadowroot.html @@ -25,7 +25,7 @@ SimpleTest.waitForExplicitFinish(); SpecialPowers.pushPrefEnv({ set: [ - ["dom.webcomponents.enabled", true] + ["dom.webcomponents.shadowdom.enabled", true] ] }, function() { // This test loads in an iframe, to ensure that the element instance is diff --git a/accessible/tests/mochitest/hittest/test_shadowroot.html b/accessible/tests/mochitest/hittest/test_shadowroot.html index 4cb4e9bea64a..d8a959ba469e 100644 --- a/accessible/tests/mochitest/hittest/test_shadowroot.html +++ b/accessible/tests/mochitest/hittest/test_shadowroot.html @@ -25,7 +25,7 @@ SimpleTest.waitForExplicitFinish(); SpecialPowers.pushPrefEnv({ set: [ - ["dom.webcomponents.enabled", true] + ["dom.webcomponents.shadowdom.enabled", true] ] }, function() { // This test loads in an iframe, to ensure that the element instance is diff --git a/accessible/tests/mochitest/treeupdate/test_bug1276857.html b/accessible/tests/mochitest/treeupdate/test_bug1276857.html index 7617ba17eb68..0db7ad51ab7c 100644 --- a/accessible/tests/mochitest/treeupdate/test_bug1276857.html +++ b/accessible/tests/mochitest/treeupdate/test_bug1276857.html @@ -112,7 +112,7 @@ SimpleTest.waitForExplicitFinish(); SpecialPowers.pushPrefEnv({ set: [ - ["dom.webcomponents.enabled", true] + ["dom.webcomponents.shadowdom.enabled", true] ] }, function() { // This test loads in an iframe, to ensure that the element instance is diff --git a/devtools/client/inspector/markup/test/browser_markup_anonymous_03.js b/devtools/client/inspector/markup/test/browser_markup_anonymous_03.js index 010ce06e071a..40c089802968 100644 --- a/devtools/client/inspector/markup/test/browser_markup_anonymous_03.js +++ b/devtools/client/inspector/markup/test/browser_markup_anonymous_03.js @@ -10,7 +10,7 @@ const TEST_URL = URL_ROOT + "doc_markup_anonymous.html"; add_task(function* () { - Services.prefs.setBoolPref("dom.webcomponents.enabled", true); + Services.prefs.setBoolPref("dom.webcomponents.shadowdom.enabled", true); let {inspector} = yield openInspectorForURL(TEST_URL); diff --git a/devtools/client/inspector/markup/test/head.js b/devtools/client/inspector/markup/test/head.js index 74efaa12fd30..78a777fa65db 100644 --- a/devtools/client/inspector/markup/test/head.js +++ b/devtools/client/inspector/markup/test/head.js @@ -35,7 +35,7 @@ registerCleanupFunction(() => { Services.prefs.clearUserPref("devtools.inspector.htmlPanelOpen"); Services.prefs.clearUserPref("devtools.inspector.sidebarOpen"); Services.prefs.clearUserPref("devtools.markup.pagesize"); - Services.prefs.clearUserPref("dom.webcomponents.enabled"); + Services.prefs.clearUserPref("dom.webcomponents.shadowdom.enabled"); Services.prefs.clearUserPref("devtools.inspector.showAllAnonymousContent"); }); diff --git a/devtools/client/webide/content/runtimedetails.js b/devtools/client/webide/content/runtimedetails.js index 2e696027b6c3..35884c9b1368 100644 --- a/devtools/client/webide/content/runtimedetails.js +++ b/devtools/client/webide/content/runtimedetails.js @@ -140,7 +140,7 @@ function EnableCertApps() { "echo 'user_pref(\"devtools.debugger.forbid-certified-apps\", false);' >> prefs.js && " + "echo 'user_pref(\"dom.apps.developer_mode\", true);' >> prefs.js && " + "echo 'user_pref(\"network.disable.ipc.security\", true);' >> prefs.js && " + - "echo 'user_pref(\"dom.webcomponents.enabled\", true);' >> prefs.js && " + + "echo 'user_pref(\"dom.webcomponents.shadowdom.enabled\", true);' >> prefs.js && " + "start b2g" ); } diff --git a/devtools/server/tests/mochitest/test_inspector-anonymous.html b/devtools/server/tests/mochitest/test_inspector-anonymous.html index c98ed9d9df2e..9a8ef6bf5f06 100644 --- a/devtools/server/tests/mochitest/test_inspector-anonymous.html +++ b/devtools/server/tests/mochitest/test_inspector-anonymous.html @@ -25,7 +25,7 @@ window.onload = function () { const isStylo = SpecialPowers.DOMWindowUtils.isStyledByServo; SpecialPowers.pushPrefEnv({"set": [ - ["dom.webcomponents.enabled", true] + ["dom.webcomponents.shadowdom.enabled", true] ]}); SimpleTest.waitForExplicitFinish(); diff --git a/dom/base/ChildIterator.cpp b/dom/base/ChildIterator.cpp index 38ee89b6a360..32171fde04ff 100644 --- a/dom/base/ChildIterator.cpp +++ b/dom/base/ChildIterator.cpp @@ -25,7 +25,7 @@ ExplicitChildIterator::ExplicitChildIterator(const nsIContent* aParent, mIsFirst(aStartAtBeginning), mIndexInInserted(0) { - mParentAsSlot = nsDocument::IsWebComponentsEnabled(mParent) ? + mParentAsSlot = nsDocument::IsShadowDOMEnabled(mParent) ? HTMLSlotElement::FromContent(mParent) : nullptr; } diff --git a/dom/base/DocumentOrShadowRoot.cpp b/dom/base/DocumentOrShadowRoot.cpp index 24ff4213f235..f20b9dc4f74e 100644 --- a/dom/base/DocumentOrShadowRoot.cpp +++ b/dom/base/DocumentOrShadowRoot.cpp @@ -116,7 +116,7 @@ DocumentOrShadowRoot::GetRetargetedFocusedElement() } if (focusedContent) { - if (!nsDocument::IsWebComponentsEnabled(focusedContent)) { + if (!nsDocument::IsShadowDOMEnabled(focusedContent)) { return focusedContent->AsElement(); } diff --git a/dom/base/crashtests/1324463.html b/dom/base/crashtests/1324463.html index a90358f37731..02b2a715d180 100644 --- a/dom/base/crashtests/1324463.html +++ b/dom/base/crashtests/1324463.html @@ -1,7 +1,7 @@