diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index a0e58a95c..183810054 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -347,6 +347,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); } @@ -620,7 +622,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