diff options
Diffstat (limited to 'common/content/statusline.js')
-rw-r--r-- | common/content/statusline.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/common/content/statusline.js b/common/content/statusline.js index a4932ac6..c11fbb8d 100644 --- a/common/content/statusline.js +++ b/common/content/statusline.js @@ -140,12 +140,16 @@ var StatusLine = Module("statusline", { webProgress.DOMWindow.document.dactylSecurity = this.security; }, "browser.stateChange": function onStateChange(webProgress, request, flags, status) { - if (flags & Ci.nsIWebProgressListener.STATE_START) - this.progress = 0; - if (flags & Ci.nsIWebProgressListener.STATE_STOP) { - this.progress = ""; + const L = Ci.nsIWebProgressListener; + + if (flags & (L.STATE_IS_DOCUMENT | L.STATE_IS_WINDOW)) + if (flags & L.STATE_START) + this.progress = 0; + else if (flags & L.STATE_STOP) + this.progress = ""; + + if (flags & L.STATE_STOP) this.updateStatus(); - } }, "browser.statusChange": function onStatusChange(webProgress, request, status, message) { this.timeout(function () { |