Bug 1449860 - Focus the location bar when loading about:home. r?mak
MozReview-Commit-ID: FeeNBfGTl7Z
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -2201,17 +2201,21 @@ function BrowserGoHome(aEvent) {
gBrowser &&
gBrowser.selectedTab.pinned)
where = "tab";
// openTrustedLinkIn in utilityOverlay.js doesn't handle loading multiple pages
switch (where) {
case "current":
loadOneOrMoreURIs(homePage, Services.scriptSecurityManager.getSystemPrincipal());
- gBrowser.selectedBrowser.focus();
+ if (isBlankPageURL(homePage)) {
+ focusAndSelectUrlBar();
+ } else {
+ gBrowser.selectedBrowser.focus();
+ }
notifyObservers = true;
break;
case "tabshifted":
case "tab":
urls = homePage.split("|");
var loadInBackground = getBoolPref("browser.tabs.loadBookmarksInBackground", false);
// The homepage observer event should only be triggered when the homepage opens
// in the foreground. This is mostly to support the homepage changed by extension