Verified Commit c235d508 authored by Matthew Finkel's avatar Matthew Finkel Committed by ma1
Browse files

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.
parent de304a91
Loading
Loading
Loading
Loading
+6 −0
Changes for mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntime.java: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -214,7 +214,11 @@ public final class GeckoRuntime implements Parcelable {
      GeckoAppShell.resumeLocation();
      // Monitor network status and send change notifications to Gecko
      // while active.
      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(
@@ -236,7 +240,9 @@ public final class GeckoRuntime implements Parcelable {
      // Pause listening for locations when in background
      GeckoAppShell.pauseLocation();
      // Stop monitoring network status while inactive.
      if (!BuildConfig.TOR_BROWSER) {
        GeckoNetworkManager.getInstance().stop();
      }
      GeckoThread.onPause();
      Clipboard.onPause();
    }