Bug 1286530 - Turn mozAlarms API to ChromeOnly draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Apr 2016 10:57:17 +0200
changeset 387085 d00cae1242762c0b90c6e8ec1698629c9d5e7cf3
parent 387084 e78ba208486d01fff853dc283dab6fd879f75c2b
child 387086 e870cef24b086962483afcb85c38fd565c9af8fa
push id22896
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateWed, 13 Jul 2016 13:02:44 +0000
bugs1286530
milestone50.0a1
Bug 1286530 - Turn mozAlarms API to ChromeOnly MozReview-Commit-ID: IHoxG2y32CL
dom/webidl/AlarmsManager.webidl
--- a/dom/webidl/AlarmsManager.webidl
+++ b/dom/webidl/AlarmsManager.webidl
@@ -3,17 +3,17 @@
  * 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/.
  *
  * https://wiki.mozilla.org/WebAPI/AlarmAPI
  */
 
 [NavigatorProperty="mozAlarms",
  JSImplementation="@mozilla.org/alarmsManager;1",
- CheckAnyPermissions="alarms",
- Pref="dom.mozAlarms.enabled"]
+ Pref="dom.mozAlarms.enabled",
+ ChromeOnly]
 interface AlarmsManager {
   DOMRequest getAll();
   [UnsafeInPrerendering]
   DOMRequest add(any date, DOMString respectTimezone, optional any data);
   [UnsafeInPrerendering]
   void remove(unsigned long id);
 };