Bug 1116756 - Handle WebappOSUtils.uninstall promise rejection when running webapprt-chrome tests. r=myk
authorMarco Castelluccio <mar.castelluccio@studenti.unina.it>
Wed, 31 Dec 2014 05:04:00 +0100
changeset 248235 78d6f61ef9807c36b5f8f09dbdaca62f47553d08
parent 248234 368f0748e882be78773e35586cea61614bccf72e
child 248236 d6389b7835f0d0f93fc0bfcccaa14f6080503f87
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmyk
bugs1116756
milestone37.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 1116756 - Handle WebappOSUtils.uninstall promise rejection when running webapprt-chrome tests. r=myk
webapprt/WebappManager.jsm
--- a/webapprt/WebappManager.jsm
+++ b/webapprt/WebappManager.jsm
@@ -37,17 +37,17 @@ this.WebappManager = {
         if (chromeWin) {
           this.doUninstall(data, chromeWin);
         }
         break;
       case "webapps-launch":
         WebappOSUtils.launch(data);
         break;
       case "webapps-uninstall":
-        WebappOSUtils.uninstall(data);
+        WebappOSUtils.uninstall(data).then(null, Cu.reportError);
         break;
     }
   },
 
   update: function(aApp, aManifest, aZipPath) {
     let nativeApp = new NativeApp(aApp, aManifest,
                                   WebappRT.config.app.categories,
                                   WebappRT.config.registryDir);