Better debug output for downloads in WebDAV mode
This commit is contained in:
parent
2edda44b12
commit
85826ba2f1
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue