зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
d759b2dd76
Коммит
a277e098d9
|
@ -357,11 +357,14 @@
|
|||
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++) {
|
||||
var p = this.mTabBrowser.mProgressListeners[i];
|
||||
if (p)
|
||||
if (p && !oldBlank)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче