From 732bb23c33e75dee2e7b3a848132127a652397d7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 23 Aug 2019 02:17:23 -0400 Subject: [PATCH] Fx60: Fix attachment download --- chrome/content/zotero/xpcom/attachments.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index fffce7c66c..d079483adb 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -857,15 +857,11 @@ Zotero.Attachments = new function(){ } wbp.progressListener = new Zotero.WebProgressFinishListener(() => resolve()); - - var nsIURL = Components.classes["@mozilla.org/network/standard-url;1"] - .createInstance(Components.interfaces.nsIURL); - nsIURL.spec = url; var headers = {}; if (options.referrer) { headers.Referer = options.referrer; } - Zotero.Utilities.Internal.saveURI(wbp, nsIURL, path, headers); + Zotero.Utilities.Internal.saveURI(wbp, url, path, headers); }); if (options.isPDF) {