1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 10:02:27 +01:00

Fix some more CPG breakage.

This commit is contained in:
Kris Maglione
2012-12-16 21:09:41 -08:00
parent 2f0af0a3f1
commit 3e1911476b
12 changed files with 94 additions and 45 deletions

View File

@@ -638,6 +638,7 @@ var Buffer = Module("Buffer", {
| persist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
let window = this.topWindow;
file = File(file);
if (!file.exists())
file.create(Ci.nsIFile.NORMAL_FILE_TYPE, octal(666));
@@ -649,7 +650,7 @@ var Buffer = Module("Buffer", {
persist.progressListener = update(Object.create(downloadListener), {
onStateChange: util.wrapCallback(function onStateChange(progress, request, flags, status) {
if (callback && (flags & Ci.nsIWebProgressListener.STATE_STOP) && status == 0)
util.trapErrors(callback, self, uri, file, progress, request, flags, status);
util.trapErrors(callback, self, uri, file.file, progress, request, flags, status);
return onStateChange.superapply(this, arguments);
})
@@ -657,7 +658,7 @@ var Buffer = Module("Buffer", {
else
persist.progressListener = downloadListener;
persist.saveURI(uri, null, null, null, null, file);
persist.saveURI(uri, null, null, null, null, file.path);
},
/**