commit 85826ba2f136182285ffed395487ce4ec83ec71a
parent 2edda44b125058062de3dfea81539d312d1efaa6
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 15 Dec 2009 08:51:47 +0000
Better debug output for downloads in WebDAV mode
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js
@@ -367,13 +367,17 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.downloadFile = function (request) {
}
);
- Zotero.debug('Saving with saveURI()');
+ // Don't display password in console
+ var disp = uri.clone();
+ if (disp.password) {
+ disp.password = '********';
+ }
+ Zotero.debug('Saving ' + disp.spec + ' with saveURI()');
const nsIWBP = Components.interfaces.nsIWebBrowserPersist;
var wbp = Components
.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"]
.createInstance(nsIWBP);
wbp.persistFlags = nsIWBP.PERSIST_FLAGS_BYPASS_CACHE;
-
wbp.progressListener = listener;
wbp.saveURI(uri, null, null, null, null, destFile);
}
diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js
@@ -256,7 +256,6 @@ Zotero.Sync.Storage.Session.ZFS.prototype.downloadFile = function (request) {
if (disp.password) {
disp.password = "********";
}
-
Zotero.debug('Saving ' + disp.spec + ' with saveURI()');
const nsIWBP = Components.interfaces.nsIWebBrowserPersist;
var wbp = Components