зеркало из https://github.com/mozilla/gecko-dev.git
Bug 934496 - Don't update progress bar for events in background tabs [r=jimm]
This commit is contained in:
Родитель
ef65f7414c
Коммит
10ce9b67d4
|
@ -163,9 +163,11 @@ const WebProgress = {
|
|||
|
||||
_showProgressBar: function (aTab) {
|
||||
// display the track
|
||||
if (aTab == Browser.selectedTab) {
|
||||
Elements.progressContainer.removeAttribute("collapsed");
|
||||
Elements.progress.style.width = aTab._progressCount + "%";
|
||||
Elements.progress.removeAttribute("fade");
|
||||
}
|
||||
|
||||
// Create a pulse timer to keep things moving even if we don't
|
||||
// collect any state changes.
|
||||
|
@ -190,7 +192,9 @@ const WebProgress = {
|
|||
if (!aTab._progressActive)
|
||||
return;
|
||||
this._stepProgressCount(aTab);
|
||||
if (aTab == Browser.selectedTab) {
|
||||
Elements.progress.style.width = aTab._progressCount + "%";
|
||||
}
|
||||
},
|
||||
|
||||
_progressStepTimer: function _progressStepTimer(aTab) {
|
||||
|
@ -206,8 +210,10 @@ const WebProgress = {
|
|||
_progressStop: function _progressStop(aJson, aTab) {
|
||||
aTab._progressActive = false;
|
||||
// 'Whoosh out' and fade
|
||||
if (aTab == Browser.selectedTab) {
|
||||
Elements.progress.style.width = "100%";
|
||||
Elements.progress.setAttribute("fade", true);
|
||||
}
|
||||
},
|
||||
|
||||
_progressTransEnd: function _progressTransEnd(aEvent) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче