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 222409 78d6f61ef9807c36b5f8f09dbdaca62f47553d08
parent 222408 368f0748e882be78773e35586cea61614bccf72e
child 222410 d6389b7835f0d0f93fc0bfcccaa14f6080503f87
push id28064
push usercbook@mozilla.com
push dateWed, 07 Jan 2015 13:13:08 +0000
treeherdermozilla-central@206205dd8bd1 [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);