mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 331938: make sure to set at least the visual transfer status of a new blank tab, patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor
This commit is contained in:
parent
da4e0293be
commit
b8d8ea7936
@ -357,11 +357,14 @@
|
|||||||
this.mTabBrowser.mIsBusy = false;
|
this.mTabBrowser.mIsBusy = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!oldBlank && this.mTabBrowser.mCurrentTab == this.mTab) {
|
if (this.mTabBrowser.mCurrentTab == this.mTab) {
|
||||||
for (var i = 0; i < this.mTabBrowser.mProgressListeners.length; i++) {
|
for (var i = 0; i < this.mTabBrowser.mProgressListeners.length; i++) {
|
||||||
var p = this.mTabBrowser.mProgressListeners[i];
|
var p = this.mTabBrowser.mProgressListeners[i];
|
||||||
if (p)
|
if (p && !oldBlank)
|
||||||
p.onStateChange(aWebProgress, aRequest, aStateFlags, aStatus);
|
p.onStateChange(aWebProgress, aRequest, aStateFlags, aStatus);
|
||||||
|
// make sure that the visible status of new blank tabs is correctly set
|
||||||
|
else if (p && "onUpdateCurrentBrowser" in p)
|
||||||
|
p.onUpdateCurrentBrowser(aStateFlags, aStatus, "", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user