Bug 1185927 - Don't show extra dialog when user cancels add-on download. r=sebastian, a=ritu
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Thu, 20 Aug 2015 13:15:35 -0700
changeset 288915 443bedd065f6e4640b38572d1a0f4a3b56be8cfe
parent 288914 4511845571f119760e131521e8fa3bde6b462ac4
child 288916 50d43aa31d3d39c74b339e31d43e462c74fe8e58
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian, ritu
bugs1185927
milestone42.0a2
Bug 1185927 - Don't show extra dialog when user cancels add-on download. r=sebastian, a=ritu
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6494,19 +6494,17 @@ var XPInstallObserver = {
   },
 
   onDownloadProgress: function(aInstall) {},
 
   onDownloadFailed: function(aInstall) {
     this._showErrorMessage(aInstall);
   },
 
-  onDownloadCancelled: function(aInstall) {
-    this._showErrorMessage(aInstall);
-  },
+  onDownloadCancelled: function(aInstall) {},
 
   _showErrorMessage: function(aInstall) {
     // Don't create a notification for distribution add-ons.
     if (Distribution.pendingAddonInstalls.has(aInstall)) {
       Cu.reportError("Error installing distribution add-on: " + aInstall.addon.id);
       Distribution.pendingAddonInstalls.delete(aInstall);
       return;
     }