Bug 1105560 - PACKAGE_UNCHANGED is not thrown inside an Error anymore. r=myk
authorAntonio M. Amaya <amac@tid.es>
Thu, 27 Nov 2014 01:54:00 +0100
changeset 218458 a064f583dd743cd50e066f9828f56016730de4e1
parent 218314 3a2ce7001153b2e77605f8ecc0fb216788fedd6c
child 218459 2bf9a54ee65b3040937beedf93a48e6500f06037
push idunknown
push userunknown
push dateunknown
reviewersmyk
bugs1105560
milestone37.0a1
Bug 1105560 - PACKAGE_UNCHANGED is not thrown inside an Error anymore. r=myk
mobile/android/modules/WebappManager.jsm
--- a/mobile/android/modules/WebappManager.jsm
+++ b/mobile/android/modules/WebappManager.jsm
@@ -353,17 +353,17 @@ this.WebappManager = {
 
     // updatePackagedApp just prepares the update, after which we must
     // download the package via the misnamed startDownload and then apply it
     // via applyDownload.
     yield DOMApplicationRegistry.updatePackagedApp(aData, aOldApp.id, aOldApp, aData.updateManifest);
 
     try {
       yield DOMApplicationRegistry.startDownload(aData.manifestURL);
-    } catch (ex if ex.message == "PACKAGE_UNCHANGED") {
+    } catch (ex if ex == "PACKAGE_UNCHANGED") {
       debug("package unchanged");
       // If the package is unchanged, then there's nothing more to do.
       return;
     }
 
     yield DOMApplicationRegistry.applyDownload(aData.manifestURL);
   }),