Bug 1286530 - Turn mozApps API to ChromeOnly draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Apr 2016 11:05:17 +0200
changeset 387243 b3f135fc6dd02ad19bc4ff0f9590da51adb1f7f7
parent 387242 6e325415ff3315cfe4310163b9502bfc38d44ebc
child 387244 1a92cd70bc298b3cfc8daee3e44d1e0e37f44fd2
push id22914
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateWed, 13 Jul 2016 15:39:24 +0000
bugs1286530
milestone50.0a1
Bug 1286530 - Turn mozApps API to ChromeOnly MozReview-Commit-ID: Hn0Yueqj0CD
dom/webidl/Apps.webidl
--- a/dom/webidl/Apps.webidl
+++ b/dom/webidl/Apps.webidl
@@ -17,19 +17,19 @@ dictionary LanguageDesc {
 
 enum LocaleResourceType {
   "binary",
   "json",
   "text"
 };
 
 [NoInterfaceObject, NavigatorProperty="mozApps",
- JSImplementation="@mozilla.org/webapps;1"]
+ JSImplementation="@mozilla.org/webapps;1",
+ ChromeOnly]
 interface DOMApplicationsRegistry {
-  [CheckAnyPermissions="webapps-manage homescreen-webapps-manage"]
   readonly attribute DOMApplicationsManager mgmt;
   DOMRequest install(DOMString url, optional InstallParameters params);
   DOMRequest installPackage(DOMString url, optional InstallParameters params);
   DOMRequest getSelf();
   DOMRequest getInstalled();
   DOMRequest checkInstalled(DOMString manifestUrl);
 
   // Language pack API.
@@ -100,31 +100,26 @@ interface DOMApplication : EventTarget {
   // Returns the localized value of a property, using either the manifest or
   // a langpack if one is available.
   Promise<DOMString> getLocalizedValue(DOMString property,
                                        DOMString locale,
                                        optional DOMString entryPoint);
 };
 
 [JSImplementation="@mozilla.org/webapps/manager;1",
- ChromeOnly,
- CheckAnyPermissions="webapps-manage homescreen-webapps-manage"]
+ ChromeOnly]
 interface DOMApplicationsManager : EventTarget {
   DOMRequest getAll();
 
-  [CheckAnyPermissions="webapps-manage"]
   void applyDownload(DOMApplication app);
   DOMRequest uninstall(DOMApplication app);
 
-  [CheckAnyPermissions="webapps-manage"]
   Promise<DOMApplication> import(Blob blob);
-  [CheckAnyPermissions="webapps-manage"]
   Promise<any> extractManifest(Blob blob);
 
-  [CheckAnyPermissions="webapps-manage"]
   void setEnabled(DOMApplication app, boolean state);
   Promise<Blob> getIcon(DOMApplication app, DOMString iconID,
                         optional DOMString entryPoint);
 
   attribute EventHandler oninstall;
   attribute EventHandler onuninstall;
   attribute EventHandler onenabledstatechange;
 };