From 1dd67fe8378b0b605397d2f9b9f18a3bef7405f4 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 10 Oct 2012 15:33:40 -0400 Subject: [PATCH] Another fixe for https://bugzilla.mozilla.org/show_bug.cgi?id=794602 --- chrome/content/zotero/xpcom/attachments.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index b4e5a119c..3c53148a5 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -354,6 +354,8 @@ Zotero.Attachments = new function(){ try { wbp.saveURI(nsIURL, null, null, null, null, file); } catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") { + // https://bugzilla.mozilla.org/show_bug.cgi?id=794602 + // XXX Always use when we no longer support Firefox < 18 wbp.saveURI(nsIURL, null, null, null, null, file, null); } @@ -626,7 +628,13 @@ Zotero.Attachments = new function(){ throw (e); } }); - wbp.saveURI(nsIURL, null, null, null, null, file); + try { + wbp.saveURI(nsIURL, null, null, null, null, file); + } catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") { + // https://bugzilla.mozilla.org/show_bug.cgi?id=794602 + // XXX Always use when we no longer support Firefox < 18 + wbp.saveURI(nsIURL, null, null, null, null, file, null); + } } // Add to collections