Bug 1286530 - Turn Feature API to ChromeOnly draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Apr 2016 12:32:13 +0200
changeset 387255 eb7e18602cabad1f22a47ae78538c8d08c907109
parent 387254 a2fba365271c3f0a4ba62608cecdf20d43b2e536
child 387256 93cda0fd57ea74ce2be0c06fc63236e970d81c3e
push id22914
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateWed, 13 Jul 2016 15:39:24 +0000
bugs1286530
milestone50.0a1
Bug 1286530 - Turn Feature API to ChromeOnly MozReview-Commit-ID: 9FYhjxhcyUP
dom/webidl/Navigator.webidl
--- a/dom/webidl/Navigator.webidl
+++ b/dom/webidl/Navigator.webidl
@@ -89,20 +89,20 @@ interface NavigatorContentUtils {
 [NoInterfaceObject]
 interface NavigatorStorageUtils {
   // NOT IMPLEMENTED
   //void yieldForStorageUpdates();
 };
 
 [NoInterfaceObject]
 interface NavigatorFeatures {
-  [CheckAnyPermissions="feature-detection", Throws]
+  [ChromeOnly, Throws]
   Promise<any> getFeature(DOMString name);
 
-  [CheckAnyPermissions="feature-detection", Throws]
+  [ChromeOnly, Throws]
   Promise<any> hasFeature(DOMString name);
 };
 
 partial interface Navigator {
   [Throws]
   readonly attribute Permissions permissions;
 };