Bug 1296838 - Show loading icon even if previous tab had a fav icon. r=Ratty a=Ratty

This commit is contained in:
Frank-Rainer Grahl 2016-09-02 16:49:05 +02:00
Родитель a7a4906d84
Коммит cb8094231a
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -543,9 +543,14 @@
if (!(aStateFlags & nsIWebProgressListener.STATE_RESTORING)) {
this.mTab.setAttribute("busy", "true");
if (aWebProgress.isTopLevel &&
!(aWebProgress.loadType & Components.interfaces.nsIDocShell.LOAD_CMD_RELOAD))
this.mTabBrowser.setTabTitleLoading(this.mTab);
// Do the following only for the top frame not any subframes.
if (aWebProgress.isTopLevel) {
// Remove favicon. This shows busy and progress indicators even during a reload.
this.mTab.removeAttribute("image");
if (!(aWebProgress.loadType & Components.interfaces.nsIDocShell.LOAD_CMD_RELOAD))
this.mTabBrowser.setTabTitleLoading(this.mTab);
}
}
if (this.mTab.selected)