Bug 338661: tabs are blank during session restoration, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2006-06-04 07:10:27 +00:00
Родитель dbd12bdb72
Коммит f727362bb3
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -1253,6 +1253,15 @@ SessionStoreService.prototype = {
}
}
// mark the tabs as loading (at this point about:blank
// has completed loading in all tabs, so it won't interfere)
for (t = 0; t < aTabs.length; t++) {
var tab = aTabs[t]._tab;
tab.setAttribute("busy", "true");
tabbrowser.updateIcon(tab);
tabbrowser.setTabTitleLoading(tab);
}
// make sure to restore the selected tab first (if any)
if (aSelectTab-- && aTabs[aSelectTab]) {
aTabs.unshift(aTabs.splice(aSelectTab, 1)[0]);