Bug 1090820 - OTA update check never clears status. r=fabrice
authorMarkus Nilsson <markus.nilsson@sonymobile.com>
Fri, 09 Jan 2015 13:32:47 -0800
changeset 236175 2dcf6d304cd21eb08b9c26085e015b22452fac49
parent 236174 0bc29e98ceb40a173c466f7ff9cea3b05883e74a
child 236176 5649329289bc8cbe99e8b41d015efd5770638ebd
push id391
push usermcmanus@ducksong.com
push dateMon, 12 Jan 2015 18:26:35 +0000
reviewersfabrice
bugs1090820
milestone37.0a1
Bug 1090820 - OTA update check never clears status. r=fabrice
dom/apps/Webapps.jsm
--- a/dom/apps/Webapps.jsm
+++ b/dom/apps/Webapps.jsm
@@ -2247,17 +2247,17 @@ this.DOMApplicationRegistry = {
             if (oldHash == hash) {
               debug("Update - oldhash");
               this.updateHostedApp(aData, id, app, oldManifest, null);
               return;
             }
 
             // For hosted apps and hosted apps with appcache, use the
             // manifest "as is".
-            if (this.kTrustedHosted !== this.appKind(app, app.manifest)) {
+            if (this.kTrustedHosted !== this.appKind(app, manifest)) {
               this.updateHostedApp(aData, id, app, oldManifest, manifest);
               return;
             }
 
             // For trusted hosted apps, verify the manifest before
             // installation.
             TrustedHostedAppsUtils.verifyManifest(app, id, manifest)
               .then(() => this.updateHostedApp(aData, id, app, oldManifest, manifest),