Bug 1105560 - PACKAGE_UNCHANGED is not thrown inside an Error anymore. r=myk, a=sledru
authorAntonio M. Amaya <amac@tid.es>
Thu, 27 Nov 2014 01:54:00 +0100
changeset 242401 f2845fd95f25c07ab2fc3ac2374cca06ef5ccdd1
parent 242400 856e6399952ada3605ed7a2f9782e0c23801ea5d
child 242402 29f65673850dd0c66938ead911801c0ffc6f1938
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmyk, sledru
bugs1105560
milestone36.0a2
Bug 1105560 - PACKAGE_UNCHANGED is not thrown inside an Error anymore. r=myk, a=sledru
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);
   }),