Skip to content

Commit

Permalink
Bug 1097468 - Part 1: Expose |homescreen-webapps-manage| in Apps.webi…
Browse files Browse the repository at this point in the history
…dl. r=sicking
  • Loading branch information
JuniorHsu committed Mar 6, 2015
1 parent 14c9e4b commit c0588a3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dom/webidl/Apps.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ enum LocaleResourceType {
[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);
Expand Down Expand Up @@ -116,16 +116,22 @@ interface DOMApplication : EventTarget {

[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);
Expand Down

0 comments on commit c0588a3

Please sign in to comment.