Bug 476714: Closing the selected tab results in errors, r=gavin

This commit is contained in:
Mark Finkle 2009-02-03 21:37:10 -05:00
Родитель 2f70a25006
Коммит 91b60714cf
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -311,14 +311,14 @@ var Browser = {
event.initEvent("TabClose", true, false);
tab.content.dispatchEvent(event);
this.selectedTab = nextTab;
tab.destroy();
this._tabs.splice(tabIndex, 1);
// redraw the tabs
for (let t = tabIndex; t < this._tabs.length; t++)
this._tabs[t].updateThumbnail();
this.selectedTab = nextTab;
},
get selectedTab() {