diff --git a/.hgignore b/.hgignore index 955fd4653b51..ef7ca59fd827 100644 --- a/.hgignore +++ b/.hgignore @@ -26,5 +26,3 @@ _DBG\.OBJ/ _OPT\.OBJ/ -# my objdirs -^ff-opt diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 2d1ca82d3bd5..e1f94f5ccde6 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -1503,16 +1503,23 @@ function loadOneOrMoreURIs(aURIString) } } -function openLocation() { - if (window.fullScreen) - FullScreen.mouseoverToggle(true); - +function focusAndSelectUrlBar() +{ if (gURLBar && isElementVisible(gURLBar) && !gURLBar.readOnly) { gURLBar.focus(); gURLBar.select(); - return; + return true; } + return false; +} +function openLocation() +{ + if (window.fullScreen) + FullScreen.mouseoverToggle(true); + + if (focusAndSelectUrlBar()) + return; #ifdef XP_MACOSX if (window.location.href != getBrowserURL()) { var win = getTopWin(); diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index b8d671117f8b..29dc875427e8 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -197,6 +197,7 @@