Bug 610196 - Alt+Home should open in a new tab when current is an app tab. r+a=gavin
authorDão Gottwald <dao@mozilla.com>
Sun, 07 Nov 2010 15:06:37 +0100
changeset 57067 7493734a1cd0617abc81519ebf54429646746744
parent 57066 0fdd9f2f8bc9de6a034da87b530a0a079d45abeb
child 57068 e3e1c660dca20616586250eff934270125650bd1
push id16774
push userdgottwald@mozilla.com
push dateSun, 07 Nov 2010 14:07:08 +0000
treeherdermozilla-central@7493734a1cd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs610196
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 610196 - Alt+Home should open in a new tab when current is an app tab. r+a=gavin
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1908,22 +1908,17 @@ function BrowserReload() {
 }
 
 function BrowserReloadSkipCache() {
   // Bypass proxy and cache.
   const reloadFlags = nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY | nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
   BrowserReloadWithFlags(reloadFlags);
 }
 
-function BrowserHome()
-{
-  var homePage = gHomeButton.getHomePage();
-  loadOneOrMoreURIs(homePage);
-}
-
+var BrowserHome = BrowserGoHome;
 function BrowserGoHome(aEvent) {
   if (aEvent && "button" in aEvent &&
       aEvent.button == 2) // right-click: do nothing
     return;
 
   var homePage = gHomeButton.getHomePage();
   var where = whereToOpenLink(aEvent, false, true);
   var urls;