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: 4 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
QOwnNotes 19.1.6
24.12.4 The wel...Kool — 12:56
INTEL Arc Graphics 32.0.101.6325/6253 dr...
Highlights Fix...harlan4096 — 11:06
GFYI [Official] Revo Uninstaller Pro v5...
"Share feedback...damien76 — 09:01
GFYI [Official] SpyShelter PRO v15 Chri...
Merry Christmas and ...damien76 — 08:56
GFYI [Official] IObit Christmas 2024 Bl...
Merry Christmas and ...damien76 — 08:54

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
No upcoming birthdays.

[-]
Online Staff
There are no staff members currently online.

>