Bug 1286530 - Turn Settings API to ChromeOnly draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Apr 2016 12:02:51 +0200
changeset 387248 8c171cf52f998e78715205aed1fcb6babbca75e8
parent 387247 779e2adbcf0be006eda703a2814c1a13dbf6f172
child 387249 ba4546884e1d9feae0edd2391766bce876a5bc08
push id22914
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateWed, 13 Jul 2016 15:39:24 +0000
bugs1286530
milestone50.0a1
Bug 1286530 - Turn Settings API to ChromeOnly MozReview-Commit-ID: 7SCYk7CoyEd
dom/webidl/MozSettingsEvent.webidl
dom/webidl/MozSettingsTransactionEvent.webidl
dom/webidl/PermissionSettings.webidl
dom/webidl/SettingsManager.webidl
--- a/dom/webidl/MozSettingsEvent.webidl
+++ b/dom/webidl/MozSettingsEvent.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 [Constructor(DOMString type, optional MozSettingsEventInit eventInitDict),
- CheckAnyPermissions="settings-api-read settings-api-write"]
+ ChromeOnly]
 interface MozSettingsEvent : Event
 {
   readonly attribute DOMString? settingName;
   readonly attribute any settingValue;
 };
 
 dictionary MozSettingsEventInit : EventInit
 {
--- a/dom/webidl/MozSettingsTransactionEvent.webidl
+++ b/dom/webidl/MozSettingsTransactionEvent.webidl
@@ -1,16 +1,16 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 [Constructor(DOMString type, optional MozSettingsTransactionEventInit eventInitDict),
- CheckAnyPermissions="settings-api-read settings-api-write"]
+ ChromeOnly]
 interface MozSettingsTransactionEvent : Event
 {
   readonly attribute DOMString? error;
 };
 
 dictionary MozSettingsTransactionEventInit : EventInit
 {
   DOMString error = "";
--- a/dom/webidl/PermissionSettings.webidl
+++ b/dom/webidl/PermissionSettings.webidl
@@ -1,14 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain at http://mozilla.org/MPL/2.0/. */
 
 [JSImplementation="@mozilla.org/permissionSettings;1",
- CheckAnyPermissions="permissions",
+ ChromeOnly,
  Pref="dom.mozPermissionSettings.enabled",
  NavigatorProperty="mozPermissionSettings"]
 interface PermissionSettings
 {
   DOMString get(DOMString permission, DOMString manifestURI, DOMString origin, boolean browserFlag);
 
   void set(DOMString permission, DOMString value, DOMString manifestURI, DOMString origin, boolean browserFlag);
 
--- a/dom/webidl/SettingsManager.webidl
+++ b/dom/webidl/SettingsManager.webidl
@@ -26,17 +26,17 @@ dictionary SettingChange {
   DOMString settingValue;
 };
 
 callback SettingChangeCallback = void (SettingChange setting);
 
 [JSImplementation="@mozilla.org/settingsManager;1",
  NavigatorProperty="mozSettings",
  Pref="dom.mozSettings.enabled",
- CheckAnyPermissions="settings-api-read settings-api-write"]
+ ChromeOnly]
 interface SettingsManager : EventTarget {
   SettingsLock createLock();
 
   void addObserver(DOMString name, SettingChangeCallback callback);
   void removeObserver(DOMString name, SettingChangeCallback callback);
 
   attribute EventHandler onsettingchange;
 };