Backed out changeset e0110ab48587

This commit is contained in:
Dão Gottwald 2011-04-26 12:14:38 +02:00
parent 1e3c93a06e
commit 2b874a847f

View File

@ -962,13 +962,14 @@
// 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 && !window.fullScreen) {
gURLBar.focus();
break;
}
if (isTabEmpty(this.mCurrentTab)) {
focusAndSelectUrlBar();
break;
if (newBrowser._urlbarFocused && gURLBar) {
if (!window.fullScreen) {
gURLBar.focus();
break;
} else if (isTabEmpty(this.mCurrentTab)) {
focusAndSelectUrlBar();
break;
}
}
// If the find bar is focused, keep it focused.