Closed Bug 1602900 Opened 6 years ago Closed 5 years ago

Can't disable calls to detectportal.firefox.com on Ubuntu

Categories

(Core :: Networking, defect)

71 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: peter, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15

Steps to reproduce:

I'm trying to remove requests to detectportal.firefox.com by setting the preferences 'network.captive-portal-service.enabled': false. This works fine on Mac OS X but on Ubuntu the same setting doesn't disable the calls.

I collect the MOZ_LOG using timestamp,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5 to see what requests is being sent by Firefox.

I use Browsertime to generate the moz log with the following parameters:
--firefox.collectMozLog https://en.wikipedia.org/wiki/Barack_Obama -n 1 --firefox.mozillaProPreferences

But you can do it by hand also by just enabling the log and go to a page.

I want to be able to remove all background requests to make sure they do not impact my performance metrics.

Actual results:

On Mac OS X the logs include one reference to detectportal.firefox.com.

On Ubuntu (using Docker) the same code generates 143 references to detectportal.firefox.com.

Expected results:

It should be the same result for both OS X and Ubuntu.

Component: Untriaged → Networking
Product: Firefox → Core

If you want to disable the calls completely you also need to set network.connectivity-service.enabled to false.
The difference in the number of calls can be attributed to differences in how we detect network changes between the two platforms.
If you still have issues after setting this pref, please reopen the bug.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(peter)
Resolution: --- → INVALID

That worked, thank you!

Flags: needinfo?(peter)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: