Bug 895816 - (Part 1) Tapping "New tab" should immediately create a new tab. r=lucasr
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Tue, 23 Jul 2013 17:52:32 -0700
changeset 143437 0ffd6875249bf5315a37a3307c5ad5b1d489c4a4
parent 143436 ff3604761a5f5294df8990373ba2caa8c9a85e48
child 143438 77efbb48885d080af1a3618999ed005ae7bfdb75
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr
bugs895816
milestone25.0a1
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 895816 - (Part 1) Tapping "New tab" should immediately create a new tab. r=lucasr
mobile/android/base/BrowserApp.java
--- a/mobile/android/base/BrowserApp.java
+++ b/mobile/android/base/BrowserApp.java
@@ -1100,17 +1100,17 @@ abstract public class BrowserApp extends
             }
         } catch (Exception e) {
             Log.e(LOGTAG, "Exception handling message \"" + event + "\":", e);
         }
     }
 
     @Override
     public void addTab() {
-        enterEditingMode(EditingTarget.NEW_TAB);
+        Tabs.getInstance().loadUrl("about:home", Tabs.LOADURL_NEW_TAB);
     }
 
     @Override
     public void addPrivateTab() {
         Tabs.getInstance().loadUrl("about:privatebrowsing", Tabs.LOADURL_NEW_TAB | Tabs.LOADURL_PRIVATE);
     }
 
     @Override