mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 615728 - When selecting an empty tab, autofocus on the location bar. r=dao
This commit is contained in:
parent
1ef24167d8
commit
b49d0a96a4
@ -962,14 +962,13 @@
|
|||||||
// In full screen mode, only bother making the location bar visible
|
// In full screen mode, only bother making the location bar visible
|
||||||
// if the tab is a blank one.
|
// if the tab is a blank one.
|
||||||
oldBrowser._urlbarFocused = (gURLBar && gURLBar.focused);
|
oldBrowser._urlbarFocused = (gURLBar && gURLBar.focused);
|
||||||
if (newBrowser._urlbarFocused && gURLBar) {
|
if (newBrowser._urlbarFocused && gURLBar && !window.fullScreen) {
|
||||||
if (!window.fullScreen) {
|
gURLBar.focus();
|
||||||
gURLBar.focus();
|
break;
|
||||||
break;
|
}
|
||||||
} else if (isTabEmpty(this.mCurrentTab)) {
|
if (isTabEmpty(this.mCurrentTab)) {
|
||||||
focusAndSelectUrlBar();
|
focusAndSelectUrlBar();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the find bar is focused, keep it focused.
|
// If the find bar is focused, keep it focused.
|
||||||
|
Loading…
Reference in New Issue
Block a user