Bug 921776 - Notification completed not showing when download was started from a private tab. r=wesj

This commit is contained in:
Federico Paolinelli 2013-10-17 15:18:35 -07:00
parent 660b931c8f
commit 3995839028

View File

@ -262,9 +262,9 @@ AlertDownloadProgressListener.prototype = {
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);
}
}