Backed out changeset 16f21b8add66 (bug 1367069) for about:home bustage. a=ritu
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 28 Sep 2017 12:16:20 -0400
changeset 431954 dabec7472928b6cfedce1a961b7a92387dcf0720
parent 431953 17a2791683e811faafe3841809bca916a2c98d6c
child 431955 c98ecac8524403ae264f396d8cd91e86f627ea3b
push id7846
push userryanvm@gmail.com
push dateThu, 28 Sep 2017 16:35:23 +0000
treeherdermozilla-beta@2429ebbd68a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersritu
bugs1367069
milestone57.0
backs out16f21b8add6624cb578f29c7f172a1c084a9f07e
Backed out changeset 16f21b8add66 (bug 1367069) for about:home bustage. a=ritu
mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ -1934,26 +1934,21 @@ public abstract class GeckoApp extends G
             handleSelectTabIntent(intent);
         } else if (ACTION_LOAD.equals(action)) {
             Tabs.getInstance().loadUrl(intent.getDataString());
         } else if (Intent.ACTION_VIEW.equals(action)) {
             processActionViewIntent(new Runnable() {
                 @Override
                 public void run() {
                     final String url = intent.getDataString();
-                    final boolean isExternalURL = invokedWithExternalURL(url);
                     int flags = Tabs.LOADURL_NEW_TAB | Tabs.LOADURL_USER_ENTERED | Tabs.LOADURL_EXTERNAL;
                     if (isFirstTab) {
                         flags |= Tabs.LOADURL_FIRST_AFTER_ACTIVITY_UNHIDDEN;
                     }
-                    if (isExternalURL) {
-                        Tabs.getInstance().loadUrlWithIntentExtras(url, intent, flags);
-                    } else {
-                        Tabs.getInstance().addTab();
-                    }
+                    Tabs.getInstance().loadUrlWithIntentExtras(url, intent, flags);
                 }
             });
         } else if (ACTION_HOMESCREEN_SHORTCUT.equals(action)) {
             mLayerView.loadUri(uri, GeckoView.LOAD_SWITCH_TAB);
         } else if (Intent.ACTION_SEARCH.equals(action)) {
             mLayerView.loadUri(uri, GeckoView.LOAD_NEW_TAB);
         } else if (NotificationHelper.HELPER_BROADCAST_ACTION.equals(action)) {
             NotificationHelper.getInstance(getApplicationContext()).handleNotificationIntent(intent);