From 81c8730e4bcea7c4da45e4857d75cfff33cc62da Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 12 Jul 2013 17:00:43 -0500 Subject: [PATCH] Restoring PR 3455 functionality --- web/firefoxcom.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/firefoxcom.js b/web/firefoxcom.js index c0ef68717..488fcd4dd 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -75,20 +75,20 @@ var DownloadManager = (function DownloadManagerClosure() { function DownloadManager() {} DownloadManager.prototype = { - downloadUrl: function DownloadManager_downloadUrl(url) { + downloadUrl: function DownloadManager_downloadUrl(url, filename) { FirefoxCom.request('download', { originalUrl: url, - filename: this.filename + filename: filename }); }, - download: function DownloadManager_download(blob, url) { + download: function DownloadManager_download(blob, url, filename) { var blobUrl = window.URL.createObjectURL(blob); FirefoxCom.request('download', { blobUrl: blobUrl, originalUrl: url, - filename: this.filename + filename: filename }, function response(err) { if (err && this.onerror) {