[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-60.4.0esr-8.5-1] Revert "Bug 28640: Try showing the homepage after the distribution loads"



commit 955bb4e6e38b83a474600a112182ac64ed6aba56
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Fri Dec 14 20:04:06 2018 +0000

    Revert "Bug 28640: Try showing the homepage after the distribution loads"
    
    This reverts commit ae00e455712e51453730ced526dc71dac9893344.
---
 .../base/java/org/mozilla/gecko/BrowserApp.java    | 23 ----------------------
 1 file changed, 23 deletions(-)

diff --git a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
index 9330a6ba9838..814b46f24295 100644
--- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ -3155,29 +3155,6 @@ public class BrowserApp extends GeckoApp
         // Don't show any onFinish actions when hiding from this Activity.
         mFirstrunAnimationContainer.registerOnFinishListener(null);
         mFirstrunAnimationContainer.hide();
-
-        // This is a little hacky, but this ensures about:tor (or whichever homepage
-        // is configured) shows when the user closes the FirstRun panels.
-        String homepageUrl = Tabs.getHomepage(BrowserApp.this);
-
-        // If the homepage is already open in one of the tabs, then switch to that tab.
-        int homepage_index = Tabs.getInstance().isOpen(homepageUrl);
-        if (homepage_index != Tabs.INVALID_TAB_ID) {
-            Tabs.getInstance().selectTab(homepage_index);
-            return true;
-        }
-
-        // Open in the currently selected tab by default
-        int tab_flags = Tabs.LOADURL_NONE;
-
-        // If there's more than one tab open, then the user opened at least one of them.
-        // Don't modify their tabs and open a new tab for the homepage.
-        if (Tabs.getInstance().getDisplayCount() > 1) {
-            tab_flags = Tabs.LOADURL_NEW_TAB;
-        }
-
-        Tabs.getInstance().loadUrl(homepageUrl, tab_flags);
-
         return true;
     }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits