Closed Bug 1627639 Opened 3 years ago Closed 3 years ago

Text typed in address bar is interpreted as an URI too aggressively and inconsistently

Categories

(Firefox :: Address Bar, enhancement)

75 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1180329

People

(Reporter: dd_pardal, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Typed into the address bar:

document.body
document.getElementById()
a?b
c:4
...
....

Actual results:

Firefox interpreted the examples as the following URIs, respectively:

http://document.body/
http://document.getElementById()/
http://a/?b
http://c:4/
http://.../
http://..../

Note that it seems that no other quantity of dots is interpreted as a host registered name [RFC3986]; only 3 and 4 dots.

Expected results:

Firefox shouldn't have interpreted the examples as URIs. Firefox should only interpret text as URIs if its hostname is a valid DNS name and its top-level domain is registered at IANA.

Firefox could have a setting that allows DNS with non-registered TLDs for local networks.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

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