Bug 1286530 - Turn IdleObserver API to ChromeOnly draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Apr 2016 12:32:41 +0200
changeset 387099 7dd8f80d34cc3210ff9f87357a35833ca8b1be45
parent 387098 d00902e190628421f567e0419c39f841935d5d61
child 387100 37d495946314ed41515a1ef6a722fe1a1dd83765
push id22896
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateWed, 13 Jul 2016 13:02:44 +0000
bugs1286530
milestone50.0a1
Bug 1286530 - Turn IdleObserver API to ChromeOnly MozReview-Commit-ID: F4sq3m1j6WA
dom/webidl/Navigator.webidl
--- a/dom/webidl/Navigator.webidl
+++ b/dom/webidl/Navigator.webidl
@@ -211,23 +211,23 @@ partial interface Navigator {
 
   // WebKit/Blink/Trident/Presto support this.
   [Throws]
   boolean javaEnabled();
 
   /**
    * Navigator requests to add an idle observer to the existing window.
    */
-  [Throws, CheckAnyPermissions="idle"]
+  [Throws, ChromeOnly]
   void addIdleObserver(MozIdleObserver aIdleObserver);
 
   /**
    * Navigator requests to remove an idle observer from the existing window.
    */
-  [Throws, CheckAnyPermissions="idle"]
+  [Throws, ChromeOnly]
   void removeIdleObserver(MozIdleObserver aIdleObserver);
 
   /**
    * Request a wake lock for a resource.
    *
    * A page holds a wake lock to request that a resource not be turned
    * off (or otherwise made unavailable).
    *