www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1d4dd9faac4869be5055ef77d07dded02457b7ca
parent 3dab61d581fc80697ad717a866e00e5b2a47f63e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 28 Nov 2015 19:07:11 -0500

Fix double filename in progress popup when saving files

This appears to have started in a recent Fx version.

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -2772,8 +2772,9 @@ Zotero.UnresponsiveScriptIndicator = new function() { Zotero.WebProgressFinishListener = function(onFinish) { this.onStateChange = function(wp, req, stateFlags, status) { //Zotero.debug('onStageChange: ' + stateFlags); - if ((stateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) - && (stateFlags & Components.interfaces.nsIWebProgressListener.STATE_IS_NETWORK)) { + if (stateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP + && stateFlags & Components.interfaces.nsIWebProgressListener.STATE_IS_REQUEST + && stateFlags & Components.interfaces.nsIWebProgressListener.STATE_IS_NETWORK) { onFinish(); } }