Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to disable Firefox's Captive Portal test connection on startup
#1
Information 
Quote:Mozilla's Firefox web browser tests on startup whether the network connection that is used requires a login; this is common when a device is connected to a public hotspot, e.g., when using a hotel's wireless connection.

[Image: firefox-network.connectivity-service.enabled.png]

While that is useful in some cases, it is not something that many Firefox installations require. If you use Firefox at home only, you do not need the check to be performed. It reduces the automatic connections the browser makes and may speed startup just a little bit as well.

Firefox attempts to connect to http://detectportal.firefox.com/success.txt during the test to find out if it can connect to the address. The very same address is also used to test if the active network connection supports IPv6.

Note: you may need to undo the changes if you notice connectivity issues; this should not be the case, but it is easy to undo if something goes wrong.
Disable Firefox's Network Connectivity Tests

[Image: network-captive-portal-service-enabled.png]
  1. Load about:config in the Firefox address bar to get started.
  2. Confirm the "Accept the risk and continue" prompt that is displayed. You may also want to uncheck the "warn me when I attempt to access these preferences" to skip the prompt the next time.
  3. Search for the preference network.captive-portal-service.enabled using the search field at the top.
  4. Set the preference to FALSE by clicking on the toggle icon located at the right. To undo the change, repeat the action so that the preference's value is TRUE.
  5. Search for the preference network.connectivity-service.enabled using the same method as described above.
  6. Set the preference to FALSE by clicking on the toggle icon. To undo the change, repeat the action so that the value of the preference is set to TRUE again.
The preference network.captive-portal-service.enabled checks if the network connection requires authentication. Firefox users who travel a lot and those connecting to networks that do require authentication may want to keep the preference's default value of TRUE. Everyone else may set it to FALSE without running into any usability or connectivity issues.

The preference network.connectivity-service.enabled determines capabilities of the network connection by connecting to the very same address as network.captive-portal-service.enabled.

The Tor project disabled the functionality in its browser, without any reported issues since the change. The development team noted that Firefox makes this connection whenever the network state changes:
 
Quote:NetworkConnectivityService probes http://detectportal.firefox.com/success.txt?ipv4 and http://detectportal.firefox.com/success.txt?ipv6 whenever network state changes (event network:link-status-changed). We should probably disable this unless it's needed for browser functionality.

Closing Words

Most Firefox users do not need the two preferences when they use the browser. Some users may want to do so for privacy, others to reduce the number of connections the browser makes.

Now You: do you monitor your browser's automatic connections?
...
Continue Reading
[-] The following 1 user says Thank You to harlan4096 for this post:
  • ismail
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
AMD Ryzen 9050 “Strix Halo” specs leaked
AMD Strix Point an...harlan4096 — 11:23
Audacity 3.5.1
Changes in 3.5.1: ...harlan4096 — 09:40
Waterfox G6.0.13
Waterfox G6.0.13​ ...harlan4096 — 09:39
Google Chrome 124.0.6367.78/.79
Google Chrome 124....harlan4096 — 09:38
Brave 1.65.122
Release Channel 1....harlan4096 — 09:36

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
avatar (49)steakelask
avatar (43)Termoplenka
avatar (49)Toligo

[-]
Online Staff
harlan4096's profile harlan4096
Administrator

>