зеркало из https://github.com/mozilla/pjs.git
Bug 371055: fix Ctrl+<Num> tab shortcuts (no need to set selected on the tab, since the selectedTab getter eventually does that, regression from bug 370742 which made that property read-only), r=mano
This commit is contained in:
Родитель
e4573744f0
Коммит
4bb9358f0a
|
@ -1407,10 +1407,8 @@ function ctrlNumberTabSelection(event)
|
|||
|
||||
var oldTab = gBrowser.selectedTab;
|
||||
var newTab = gBrowser.tabContainer.childNodes[index];
|
||||
if (newTab != oldTab) {
|
||||
oldTab.selected = false;
|
||||
if (newTab != oldTab)
|
||||
gBrowser.selectedTab = newTab;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
Загрузка…
Ссылка в новой задаче