Bug 1404674 - Clicking the home button should focus the content area. r?florian draft
authorDão Gottwald <dao@mozilla.com>
Tue, 03 Oct 2017 11:19:37 +0200
changeset 674111 05f1c9a9f0fbd71f44eb5ca9fa90c970a15ef62b
parent 673986 65dac33a5682f3ec5a675e7f3314b0c1520a13fa
child 734239 f00a2b6782ddab0ea46fbf48f47d252c255139f7
push id82738
push userdgottwald@mozilla.com
push dateTue, 03 Oct 2017 09:20:05 +0000
reviewersflorian
bugs1404674
milestone58.0a1
Bug 1404674 - Clicking the home button should focus the content area. r?florian MozReview-Commit-ID: GZlXyVuUbix
browser/base/content/browser.js
--- 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(),