Skip to content
Snippets Groups Projects
Commit ddad7356 authored by Matthew Finkel's avatar Matthew Finkel Committed by morgan
Browse files

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.
parent 8953e733
Branches
Tags
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1136Bug 43085: Rebased alpha onto 128.2.0esr
......@@ -178,7 +178,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(
......@@ -192,7 +196,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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment