Bug 1155245 - Set the app status correctly for hosted certified apps in developer mode. r=fabrice
authorAntonio M. Amaya <amac@tid.es>
Thu, 23 Apr 2015 06:33:00 -0400
changeset 241202 83ce3822d1270431f3a138cfc87b88125c185038
parent 241201 5d2f57d4721a3fbd052deca6b5cfe98a4f4c8992
child 241203 86a8fc4c1fae2c145dce2afdb6e20c65cacabe66
push id59045
push userryanvm@gmail.com
push dateMon, 27 Apr 2015 13:55:20 +0000
treeherdermozilla-inbound@438d9e2a991a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1155245
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 1155245 - Set the app status correctly for hosted certified apps in developer mode. r=fabrice
dom/apps/Webapps.jsm
--- a/dom/apps/Webapps.jsm
+++ b/dom/apps/Webapps.jsm
@@ -3102,16 +3102,22 @@ this.DOMApplicationRegistry = {
     let appObject = this._cloneApp(aData, app, manifest, jsonManifest, id, localId);
 
     this.webapps[id] = appObject;
 
     // For package apps, the permissions are not in the mini-manifest, so
     // don't update the permissions yet.
     if (!aData.isPackage) {
       if (supportUseCurrentProfile()) {
+        try {
+          if (Services.prefs.getBoolPref("dom.apps.developer_mode")) {
+            this.webapps[id].appStatus =
+              AppsUtils.getAppManifestStatus(app.manifest);
+          }
+        } catch(e) {};
         PermissionsInstaller.installPermissions(
           {
             origin: appObject.origin,
             manifestURL: appObject.manifestURL,
             manifest: jsonManifest,
             kind: appObject.kind
           },
           isReinstall,