This commit is contained in:
Simon Kornblith 2012-10-10 15:33:40 -04:00
parent f339e08894
commit 1dd67fe837

View file

@ -354,6 +354,8 @@ Zotero.Attachments = new function(){
try { try {
wbp.saveURI(nsIURL, null, null, null, null, file); wbp.saveURI(nsIURL, null, null, null, null, file);
} catch(e if e.name === "NS_ERROR_XPC_NOT_ENOUGH_ARGS") { } 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); wbp.saveURI(nsIURL, null, null, null, null, file, null);
} }
@ -626,7 +628,13 @@ Zotero.Attachments = new function(){
throw (e); 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 // Add to collections