Bug 887930 - [fig] Open in New Tab from context menu switches to tab, r=sriram, f=margaret
authorMark Capella <markcapella@twcny.rr.com>
Thu, 27 Jun 2013 18:06:49 -0400
changeset 143363 5bf7fd5d667539115279a0470008b36cc948be90
parent 143362 c150a39332d69d1d6248adffb71a63c997b40420
child 143364 3901245dd3416835e2407b2437d116d359eaf414
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)
reviewerssriram
bugs887930
milestone24.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 887930 - [fig] Open in New Tab from context menu switches to tab, r=sriram, f=margaret
mobile/android/base/home/HomeFragment.java
--- a/mobile/android/base/home/HomeFragment.java
+++ b/mobile/android/base/home/HomeFragment.java
@@ -123,17 +123,17 @@ class HomeFragment extends Fragment {
 
             case R.id.open_private_tab:
             case R.id.open_new_tab: {
                 if (info.url == null) {
                     Log.e(LOGTAG, "Can't open in new tab because URL is null");
                     break;
                 }
 
-                int flags = Tabs.LOADURL_NEW_TAB;
+                int flags = Tabs.LOADURL_NEW_TAB | Tabs.LOADURL_BACKGROUND;
                 if (item.getItemId() == R.id.open_private_tab)
                     flags |= Tabs.LOADURL_PRIVATE;
 
                 Tabs.getInstance().loadUrl(info.url, flags);
                 Toast.makeText(activity, R.string.new_tab_opened, Toast.LENGTH_SHORT).show();
                 return true;
             }