Fix for Firefox 18+
This commit is contained in:
parent
47a5aafda3
commit
b6fee9a357
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue