зеркало из https://github.com/mozilla/gecko-dev.git
Bug 476714: Closing the selected tab results in errors, r=gavin
This commit is contained in:
Родитель
2f70a25006
Коммит
91b60714cf
|
@ -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() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче