diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js index 676dd12994..ece5f1c089 100644 --- 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 index 1166e7710c..96e4760cb4 100644 --- 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