Open Bug 1990294 Opened 1 year ago Updated 1 year ago

Captive portal detection request does not honor proxy authentication cache, causing repeated pop-ups

Categories

(Core :: Networking, defect, P2)

Firefox 143
defect
Points:
3

Tracking

()

UNCONFIRMED

People

(Reporter: alexander.reintzsch, Unassigned)

Details

(Whiteboard: [necko-triaged] [necko-priority-next])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0

Steps to reproduce:

  1. Configure Firefox to use an authenticating proxy server (e.g., Squid with basic auth).
  2. Navigate to any website. A pop-up will appear; enter and save proxy credentials.
  3. Once the main page loads, the background request to http://detectportal.firefox.com/canonical.html is made.
  4. Observe a second authentication pop-up for this specific domain, even though credentials are cached for other sites.

  • Workaround: The issue can be avoided by disabling the captive portal detection in about:config by setting network.captive-portal-service.enabled to false, or by blocking requests to detectportal.firefox.com at the proxy level. However, the desired behavior is for the feature to work correctly with authenticating proxies.

  • Note: This behavior is disruptive because the pop-up appears after the user has already authenticated and started browsing, creating a poor user experience. It seems the captive portal detection mechanism does not fully integrate with the standard proxy authentication flow.

Actual results:

Firefox prompts for proxy credentials a second time specifically for the detectportal.firefox.com request after the initial page load. This happens every time a new browsing session triggers the captive portal check. The proxy server logs show a 407 (Proxy Authentication Required) response for this request.

Expected results:

The request to detectportal.firefox.com should use the already-provided and cached proxy credentials, just like requests to any other domain. No second authentication prompt should appear.

The Bugbug bot thinks this bug should belong to the 'Core::Networking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Networking
Product: Firefox → Core

To fix this, I think we probably need to create a wildcard auth key as what we did for wildcard connection here.

Severity: -- → S3
Points: --- → 3
Rank: 4
Priority: -- → P2
Whiteboard: [necko-triaged] [necko-priority-next]
You need to log in before you can comment on or make changes to this bug.