Bug 1404674 - Clicking the home button should focus the content area. r?florian
MozReview-Commit-ID: GZlXyVuUbix
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -2209,16 +2209,17 @@ function BrowserGoHome(aEvent) {
gBrowser &&
gBrowser.selectedTab.pinned)
where = "tab";
// openUILinkIn in utilityOverlay.js doesn't handle loading multiple pages
switch (where) {
case "current":
loadOneOrMoreURIs(homePage, Services.scriptSecurityManager.getSystemPrincipal());
+ gBrowser.selectedBrowser.focus();
break;
case "tabshifted":
case "tab":
urls = homePage.split("|");
var loadInBackground = getBoolPref("browser.tabs.loadBookmarksInBackground", false);
gBrowser.loadTabs(urls, {
inBackground: loadInBackground,
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),