зеркало из 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]);
|
||||
|
@ -1316,7 +1325,7 @@ SessionStoreService.prototype = {
|
|||
});
|
||||
Array.filter(tab.attributes, function(aAttr) {
|
||||
return (_this.xulAttributes.indexOf(aAttr.name) > -1);
|
||||
}).forEach(tab.removeAttribute, tab);
|
||||
}).forEach(tab.removeAttribute, tab);
|
||||
if (tabData.xultab) {
|
||||
tabData.xultab.split(" ").forEach(function(aAttr) {
|
||||
if (/^([^\s=]+)=(.*)/.test(aAttr)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче