diff --git a/dom/bluetooth/tests/marionette/head.js b/dom/bluetooth/tests/marionette/head.js index 3e3a599a5c4..f54c33e1263 100644 --- a/dom/bluetooth/tests/marionette/head.js +++ b/dom/bluetooth/tests/marionette/head.js @@ -726,7 +726,7 @@ function startBluetoothTestBase(aPermissions, aTestCaseMain) { } function startBluetoothTest(aReenable, aTestCaseMain) { - startBluetoothTestBase(["settings-read", "settings-write"], function() { + startBluetoothTestBase(["settings-read", "settings-write", "settings-api-read", "settings-api-write"], function() { let origEnabled, needEnable; return getBluetoothEnabled() diff --git a/dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js b/dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js index d68d2dedaa9..80febbc0541 100644 --- a/dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js +++ b/dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js @@ -58,7 +58,7 @@ function test(aEnabled) { return deferred.promise; } -startBluetoothTestBase(["settings-read", "settings-write"], +startBluetoothTestBase(["settings-read", "settings-write", "settings-api-read", "settings-api-write"], function testCaseMain() { return getBluetoothEnabled() .then(function(aEnabled) { diff --git a/dom/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js b/dom/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js index ece42ea778a..a0131f89887 100644 --- a/dom/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js +++ b/dom/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js @@ -39,7 +39,7 @@ function waitForManagerAttributeChanged() { return deferred.promise; } -startBluetoothTestBase(["settings-read", "settings-write"], +startBluetoothTestBase(["settings-read", "settings-write", "settings-api-read", "settings-api-write"], function testCaseMain() { let adapters = bluetoothManager.getAdapters(); ok(Array.isArray(adapters), "Can not got the array of adapters"); diff --git a/dom/fmradio/test/marionette/test_bug876597.js b/dom/fmradio/test/marionette/test_bug876597.js index f1614516d50..a0ea0e86f82 100644 --- a/dom/fmradio/test/marionette/test_bug876597.js +++ b/dom/fmradio/test/marionette/test_bug876597.js @@ -6,6 +6,8 @@ MARIONETTE_TIMEOUT = 10000; SpecialPowers.addPermission("fmradio", true, document); SpecialPowers.addPermission("settings-read", true, document); SpecialPowers.addPermission("settings-write", true, document); +SpecialPowers.addPermission("settings-api-read", true, document); +SpecialPowers.addPermission("settings-api-write", true, document); let FMRadio = window.navigator.mozFMRadio; let mozSettings = window.navigator.mozSettings; diff --git a/dom/mobileconnection/tests/marionette/test_dsds_mobile_data_connection.js b/dom/mobileconnection/tests/marionette/test_dsds_mobile_data_connection.js index 6ad126e614f..4a9bafccc0c 100644 --- a/dom/mobileconnection/tests/marionette/test_dsds_mobile_data_connection.js +++ b/dom/mobileconnection/tests/marionette/test_dsds_mobile_data_connection.js @@ -151,4 +151,4 @@ startDSDSTestCommon(function() { .then(testEnableDataRoamingWhileRoaming) .then(testDisableData) .then(restoreTestEnvironment); -}, ["settings-read", "settings-write"]); +}, ["settings-read", "settings-write", "settings-api-read", "settings-api-write"]); diff --git a/dom/mobileconnection/tests/marionette/test_mobile_data_connection.js b/dom/mobileconnection/tests/marionette/test_mobile_data_connection.js index 2fd57e4920a..093244e5819 100644 --- a/dom/mobileconnection/tests/marionette/test_mobile_data_connection.js +++ b/dom/mobileconnection/tests/marionette/test_mobile_data_connection.js @@ -108,4 +108,4 @@ startTestCommon(function() { .then(() => setEmulatorRoamingAndWait(false)) .then(() => setDataRoamingEnabled(false)); -}, ["settings-read", "settings-write"]); \ No newline at end of file +}, ["settings-read", "settings-write", "settings-api-read", "settings-api-write"]); \ No newline at end of file diff --git a/dom/mobileconnection/tests/marionette/test_mobile_data_ipv6.js b/dom/mobileconnection/tests/marionette/test_mobile_data_ipv6.js index 2f193d67328..af5238bf595 100644 --- a/dom/mobileconnection/tests/marionette/test_mobile_data_ipv6.js +++ b/dom/mobileconnection/tests/marionette/test_mobile_data_ipv6.js @@ -125,4 +125,4 @@ startTestCommon(function() { return setDataApnSettings(origApnSettings); } }); -}, ["settings-read", "settings-write"]); +}, ["settings-read", "settings-write", "settings-api-read", "settings-api-write"]); diff --git a/dom/mobileconnection/tests/marionette/test_mobile_set_radio.js b/dom/mobileconnection/tests/marionette/test_mobile_set_radio.js index 376752a0c55..6266b44fe2f 100644 --- a/dom/mobileconnection/tests/marionette/test_mobile_set_radio.js +++ b/dom/mobileconnection/tests/marionette/test_mobile_set_radio.js @@ -38,4 +38,4 @@ startTestCommon(function() { .then(() => setDataEnabled(false)) .then(() => setRadioEnabledAndWait(true)); -}, ["settings-read", "settings-write"]); +}, ["settings-read", "settings-write", "settings-api-read", "settings-api-write"]); diff --git a/dom/tethering/tests/marionette/head.js b/dom/tethering/tests/marionette/head.js index fa29b190a3e..5f02de1f8d5 100644 --- a/dom/tethering/tests/marionette/head.js +++ b/dom/tethering/tests/marionette/head.js @@ -538,6 +538,8 @@ let gTestSuite = (function() { let permissions = [{ 'type': 'wifi-manage', 'allow': 1, 'context': window.document }, { 'type': 'settings-write', 'allow': 1, 'context': window.document }, { 'type': 'settings-read', 'allow': 1, 'context': window.document }, + { 'type': 'settings-api-write', 'allow': 1, 'context': window.document }, + { 'type': 'settings-api-read', 'allow': 1, 'context': window.document }, { 'type': 'mobileconnection', 'allow': 1, 'context': window.document }]; SpecialPowers.pushPermissions(permissions, function() { diff --git a/dom/wifi/test/marionette/head.js b/dom/wifi/test/marionette/head.js index 94ebe298150..d3969dd45c6 100644 --- a/dom/wifi/test/marionette/head.js +++ b/dom/wifi/test/marionette/head.js @@ -209,6 +209,8 @@ let gTestSuite = (function() { let permissions = [{ 'type': 'wifi-manage', 'allow': 1, 'context': window.document }, { 'type': 'settings-write', 'allow': 1, 'context': window.document }, { 'type': 'settings-read', 'allow': 1, 'context': window.document }, + { 'type': 'settings-api-write', 'allow': 1, 'context': window.document }, + { 'type': 'settings-api-read', 'allow': 1, 'context': window.document }, { 'type': 'mobileconnection', 'allow': 1, 'context': window.document }]; SpecialPowers.pushPermissions(permissions, function() {