зеркало из https://github.com/mozilla/gecko-dev.git
Bug 615728 - When selecting an empty tab, autofocus on the location bar. r=dao
This commit is contained in:
Родитель
e183176a0d
Коммит
1e3c93a06e
|
@ -962,14 +962,13 @@
|
|||
// In full screen mode, only bother making the location bar visible
|
||||
// if the tab is a blank one.
|
||||
oldBrowser._urlbarFocused = (gURLBar && gURLBar.focused);
|
||||
if (newBrowser._urlbarFocused && gURLBar) {
|
||||
if (!window.fullScreen) {
|
||||
gURLBar.focus();
|
||||
break;
|
||||
} else if (isTabEmpty(this.mCurrentTab)) {
|
||||
focusAndSelectUrlBar();
|
||||
break;
|
||||
}
|
||||
if (newBrowser._urlbarFocused && gURLBar && !window.fullScreen) {
|
||||
gURLBar.focus();
|
||||
break;
|
||||
}
|
||||
if (isTabEmpty(this.mCurrentTab)) {
|
||||
focusAndSelectUrlBar();
|
||||
break;
|
||||
}
|
||||
|
||||
// If the find bar is focused, keep it focused.
|
||||
|
|
Загрузка…
Ссылка в новой задаче