www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 66347c27342ecee76740ba9d4de8b165b6a92d20
parent c6b812f0b16fb5c84c81a9abb96c8532f26cf879
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 10 Oct 2012 15:33:40 -0400

Another fixe for https://bugzilla.mozilla.org/show_bug.cgi?id=794602

Diffstat:
Mchrome/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 @@ -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