Closed Bug 1610865 Opened 5 years ago Closed 5 years ago

"1/2.3 B" in urlbar shouldn't suggest "Visit http://0.0.0.1/2.3 B"

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1566499

People

(Reporter: tustamido, Unassigned)

References

Details

Can "1/2.3 B" be a valid URL? I think that typing/pasting it in urlbar and pressing enter should load results in default search engine instead of trying to load http://0.0.0.1/2.3 B as Firefox currently does.

This happens because URI fixup turns it into "http://0.0.0.1/2.3%20B" here: https://searchfox.org/mozilla-central/rev/e878e5b81bb319c141900ce9cfcde732df5c8449/toolkit/components/places/UnifiedComplete.jsm#2013 keywordAsSent is empty.

If you remove the "B" and type "1/2.3", fixup turns it into "http://0.0.0.1/2.3", but keywordAsSent is "1/2.3", so _matchUnknownUrl returns false.

I'm not sure what we can do about this other than taking a closer look at how fixup works.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

This isn't related to alternate URIs (which are where we add www and .com to single words in some circumstances).

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → NEW
See Also: → 1614984
Priority: P5 → P3
Status: NEW → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.