Bug 1286530 - Turn Feature API to ChromeOnly
MozReview-Commit-ID: 9FYhjxhcyUP
--- 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;
};