зеркало из https://github.com/mozilla/pjs.git
Bug 338661: tabs are blank during session restoration, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor
This commit is contained in:
Родитель
dbd12bdb72
Коммит
f727362bb3
|
@ -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]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче