Fix for Firefox 18+

This commit is contained in:
Simon Kornblith 2012-11-12 00:45:35 -05:00
parent 47a5aafda3
commit b6fee9a357

View file

@ -675,7 +675,13 @@ var wpdCommon = {
// has the url the same filetype like the file extension?
//save file to target
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;