commit 8280a02e4361916350a43da352aa8fb7d92427bc parent 9b797a78f8b435bf641eaa89f3f0ebb92179eacb Author: Matthew Finkel <Matthew.Finkel@gmail.com> Date: Thu, 26 Apr 2018 22:22:51 +0000 TB 25741: TBA: Disable GeckoNetworkManager The browser should not need information related to the network interface or network state, tor should take care of that. Diffstat:
| M | mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntime.java | | | 10 | ++++++++-- |
1 file changed, 8 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 @@ -191,7 +191,11 @@ public final class GeckoRuntime implements Parcelable { GeckoAppShell.resumeLocation(); // Monitor network status and send change notifications to Gecko // while active. - GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext()); + if (!BuildConfig.TOR_BROWSER) { + GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext()); + } else { + Log.d(LOGTAG, "Tor Browser: skip GeckoNetworkManager startup"); + } // Set settings that may have changed between last app opening GeckoAppShell.setIs24HourFormat( @@ -215,7 +219,9 @@ public final class GeckoRuntime implements Parcelable { // Pause listening for locations when in background GeckoAppShell.pauseLocation(); // Stop monitoring network status while inactive. - GeckoNetworkManager.getInstance().stop(); + if (!BuildConfig.TOR_BROWSER) { + GeckoNetworkManager.getInstance().stop(); + } GeckoThread.onPause(); } }