[tbb-commits] [tor-browser] 08/73: Bug 25741 - TBA: Disable GeckoNetworkManager

gitolite role git at cupani.torproject.org
Mon Aug 22 20:42:27 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.13.0esr-11.5-1
in repository tor-browser.

commit a0633443a2bf3ec98f730d9b14913128fff21c97
Author: Matthew Finkel <Matthew.Finkel at gmail.com>
AuthorDate: Thu Apr 26 22:22:51 2018 +0000

    Bug 25741 - TBA: Disable GeckoNetworkManager
    
    The browser should not need information related to the network
    interface or network state, tor should take care of that.
---
 .../src/main/java/org/mozilla/geckoview/GeckoRuntime.java         | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntime.java b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntime.java
index f084b522ad533..b94d8e803b6b3 100644
--- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntime.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntime.java
@@ -122,7 +122,9 @@ public final class GeckoRuntime implements Parcelable {
             mPaused = false;
             // Monitor network status and send change notifications to Gecko
             // while active.
-            GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
+            if (BuildConfig.TOR_BROWSER_VERSION == "") {
+                GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
+            }
         }
 
         @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
@@ -130,7 +132,9 @@ public final class GeckoRuntime implements Parcelable {
             Log.d(LOGTAG, "Lifecycle: onPause");
             mPaused = true;
             // Stop monitoring network status while inactive.
-            GeckoNetworkManager.getInstance().stop();
+            if (BuildConfig.TOR_BROWSER_VERSION == "") {
+                GeckoNetworkManager.getInstance().stop();
+            }
             GeckoThread.onPause();
         }
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list