diff --git a/chrome/content/zotero/webpagedump/common.js b/chrome/content/zotero/webpagedump/common.js index f21feda53f..b618eca021 100644 --- a/chrome/content/zotero/webpagedump/common.js +++ b/chrome/content/zotero/webpagedump/common.js @@ -675,7 +675,13 @@ var wpdCommon = { // has the url the same filetype like the file extension? //save file to target - obj_Persist.saveURI(obj_URI, null, null, null, null, obj_TargetFile); + try { + obj_Persist.saveURI(obj_URI, null, null, null, null, obj_TargetFile); + } 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 + obj_Persist.saveURI(obj_URI, null, null, null, null, obj_TargetFile, null); + } return true;