Bug 921776 - Notification completed not showing when download was started from a private tab. r=wesj
authorFederico Paolinelli <fedepaol@gmail.com>
Thu, 17 Oct 2013 15:18:35 -0700
changeset 165059 0792108113b072923ea1bb048f26881a0d734d0e
parent 165058 16de756941cf46b8eb2bccd1d3e393b130832a71
child 165060 5ec2fca2c0b01bd04ae880fef5b658b8b8e533ca
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj
bugs921776
milestone27.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 921776 - Notification completed not showing when download was started from a private tab. r=wesj
mobile/android/chrome/content/downloads.js
--- a/mobile/android/chrome/content/downloads.js
+++ b/mobile/android/chrome/content/downloads.js
@@ -257,19 +257,19 @@ AlertDownloadProgressListener.prototype 
         break;
       case Ci.nsIDownloadManager.DOWNLOAD_FAILED:
       case Ci.nsIDownloadManager.DOWNLOAD_CANCELED:
       case Ci.nsIDownloadManager.DOWNLOAD_BLOCKED_PARENTAL:
       case Ci.nsIDownloadManager.DOWNLOAD_DIRTY:
       case Ci.nsIDownloadManager.DOWNLOAD_FINISHED: {
         Downloads.removeNotification(aDownload);
         if (aDownload.isPrivate) {
-          let index = this._privateDownloads.indexOf(aDownload);
+          let index = Downloads._privateDownloads.indexOf(aDownload);
           if (index != -1) {
-            this._privateDownloads.splice(index, 1);
+            Downloads._privateDownloads.splice(index, 1);
           }
         }
 
         if (state == Ci.nsIDownloadManager.DOWNLOAD_FINISHED) {
           Downloads.showNotification(aDownload, Strings.browser.GetStringFromName("alertDownloadsDone2"),
                               aDownload.displayName);
         }
         break;