Captive portal detection request does not honor proxy authentication cache, causing repeated pop-ups
Categories
(Core :: Networking, defect, P2)
Tracking
()
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:
- Configure Firefox to use an authenticating proxy server (e.g., Squid with basic auth).
- Navigate to any website. A pop-up will appear; enter and save proxy credentials.
- Once the main page loads, the background request to http://detectportal.firefox.com/canonical.html is made.
- 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.
Comment 1•1 year ago
|
||
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.
Comment 2•1 year ago
|
||
To fix this, I think we probably need to create a wildcard auth key as what we did for wildcard connection here.
Description
•