Closed Bug 1253865 Opened 8 years ago Closed 4 years ago

Unresolvable www subdomain unexpectedly redirects to domain without www

Categories

(Firefox :: Address Bar, defect, P3)

44 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: 5i13ghzt462u, Unassigned)

Details

(Whiteboard: [fxsearch])

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160210153822

Steps to reproduce:

Access gesetze-im-internet.de.


Actual results:

Firefox loads http://www.gesetze-im-internet.de/. However in the console no request to "http://gesetze-im-internet.de/" is shown as if I have never accessed/tried to access gesetze-im-internet.de.


Expected results:

There should be a connection error ("Could not resolve host" or similar).
This is the behaviour of tools like curl and also Chromium shows an error.

This issue was discovered in https://github.com/EFForg/https-everywhere/pull/4266 and there you may also see more information.
Note: In Tor Browser (Firefox/38.0 ESR) it fails, which is the correct behaviour.
BTW the STR is not completely correct: You access https://gesetze-im-internet.de, so no autocompletion sho0uld take place.
Component: Untriaged → Location Bar
Component: Location Bar → Developer Tools
Summary: Unresolvable www subdomain unexpectedly redirects to domain without www → Redirect to www subdomain not shown in developer tools console
Based on the title / description I believe the request here is that the browser shows an error page when 'gesetze-im-internet.de' in the URL bar. Chrome shows a DNS error, but Firefox loads 'http://www.gesetze-im-internet.de/'.  Needinfo to the reporter to confirm this is the case.

I'm assuming the location bar is somehow sanitizing / changing the input, so moving back into Location Bar component.
Component: Developer Tools → Location Bar
Flags: needinfo?(c4609174)
Summary: Redirect to www subdomain not shown in developer tools console → Unresolvable www subdomain unexpectedly redirects to domain without www
Yes that's the issue.
Flags: needinfo?(c4609174)
it's URIFixup that adds the www. (or better, it adds browser.fixup.alternate.prefix)
I don't know if currently it's done on purpose, it needs to be investigated.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(c4609174)
Priority: -- → P3
Whiteboard: [fxsearch]
So what exactly should I tell you? 
I have no idea whether that's done on purpose or not.
Clearing needinfo based on Comment 5
Flags: needinfo?(c4609174)
ehr sorry, I didn't mean to set that needinfo.
Uhh, this is old. Anyone?

This is done on purpose, when a domain doesn't resolve the docshell tries to add browser.fixup.alternate.prefix to it and loads that. The pref can be changed to an empty string I think.
Not a bug by itself, since it's the expected behavior.

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