Closed Bug 1727270 Opened 3 years ago Closed 3 years ago

Firefox prevents connection to captive portals with a "PR_END_OF_FILE_ERROR"

Categories

(Core :: Networking, defect)

Firefox 91
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sergio.callegari, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

Connected to wifi access point at a hotel and tried to use firefox opening a web page.

Trying the same operation with another browser (e.g., falkon, google-chrome) works just fine. Google-chrome explicitly labels the login page as "insecure".

I suspect that this happens because the captive portal uses http rather than https and firefox cannot deal with this situation and tries to connect via https automatically. In fact, if you try accessing the portal login page via https on falkon you get an "ERR_CONNECTION_CLOSED" error.

Actual results:

Firefox reported

Secure Connection Failed

An error occurred during a connection to lwn.net. PR_END_OF_FILE_ERROR

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

Expected results:

Firefox should have shown either:

a. The captive portal login page; or

b. An easy to understand error message explaining why usage of the captive portal is prevented in Firefox.

In case b. firefox should propably offer a way to retry on http given that the login on the captive portal happens via LAN resources (not resources on the open internet). Alternatively it should suggest to use a less secure browser if one really needs to use the captive portal.

Incidentally, if you get the http address from falkon and you try to use it with firefox, that works.

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

Component: Untriaged → Networking
Product: Firefox → Core

Could you try to get a http log?
Do you have https-only mode enabled?

Flags: needinfo?(sergio.callegari)

Hi,
unfortunately my help can only be partial.

I have encountered the issue while traveling in two different hotels employing captive portals. The hotel were in the same region and I do not exclude that the captive portals used the same tech or were developed by the same company. However, I am not staying there anymore, so I cannot reproduce the issue to get the logs. In case I re-experience the issue I will for certain collect logs.

On the other hand, I can say that https-only mode is disabled (Don’t enable HTTPS-Only Mode).

Flags: needinfo?(sergio.callegari)

I'll close this bug for now.
Feel free to reopen when you have more information. Thanks!

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.