Bug 1097468 - Part1: expose |homescreen-webapps-manage| in Apps.webidl; r=sicking
☠☠ backed out by a65457ed035c ☠ ☠
authorJunior Hsu <juhsu@mozilla.com>
Fri, 06 Mar 2015 18:24:42 +0800
changeset 236937 3a626a11ac38e6c9978012c387dbb0b138383393
parent 236936 80c32af73390cc37f0b6cc45680ed2168a2be73d
child 236938 57d347aa07018e74ebaa0c6e129f924c3a17270b
push id57822
push usercbook@mozilla.com
push dateWed, 01 Apr 2015 07:08:40 +0000
treeherdermozilla-inbound@11960a87b918 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs1097468
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1097468 - Part1: expose |homescreen-webapps-manage| in Apps.webidl; r=sicking
dom/webidl/Apps.webidl
--- a/dom/webidl/Apps.webidl
+++ b/dom/webidl/Apps.webidl
@@ -19,17 +19,17 @@ enum LocaleResourceType {
   "binary",
   "json",
   "text"
 };
 
 [NoInterfaceObject, NavigatorProperty="mozApps",
  JSImplementation="@mozilla.org/webapps;1"]
 interface DOMApplicationsRegistry {
-  [CheckPermissions="webapps-manage"]
+  [CheckPermissions="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.
@@ -111,26 +111,32 @@ interface DOMApplication : EventTarget {
   // a langpack if one is available.
   Promise<DOMString> getLocalizedValue(DOMString property,
                                        DOMString locale,
                                        optional DOMString entryPoint);
 };
 
 [JSImplementation="@mozilla.org/webapps/manager;1",
  ChromeOnly,
- CheckPermissions="webapps-manage"]
+ CheckPermissions="webapps-manage homescreen-webapps-manage"]
 interface DOMApplicationsManager : EventTarget {
   DOMRequest getAll();
+
+  [CheckPermissions="webapps-manage"]
   DOMRequest getNotInstalled();
+  [CheckPermissions="webapps-manage"]
   void applyDownload(DOMApplication app);
   DOMRequest uninstall(DOMApplication app);
 
+  [CheckPermissions="webapps-manage"]
   Promise<DOMApplication> import(Blob blob);
+  [CheckPermissions="webapps-manage"]
   Promise<any> extractManifest(Blob blob);
 
+  [CheckPermissions="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;
 };