Suggestions for mistyped TLDs

UNCONFIRMED
Unassigned

Status

()

Core
Document Navigation
--
enhancement
UNCONFIRMED
7 years ago
7 years ago

People

(Reporter: int3, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: 

When a typo is made in the TLD and the DNS lookup returns an error, Firefox should try to identify the typo and make a suggestion.

Example:

The user types 'google.con'.

The error page currently says 'Firefox can't find the server at www.google.con'.

We could add something after that, such as 'Did you mean www.google.com?' with www.google.com as a hyperlink.

I'm thinking of implementing this by leveraging the EffectiveTLDService, which keeps a list of known TLDs. We can look for known TLDs that are 1 edit distance away from the TLD that the user entered, and if we have more than one candidate, we can perhaps rank them by the frequency of various TLDs in the user's history. This 'suggestion' parameter will then be passed as an additional parameter to nsDocShell::DisplayLoadError, which will then render the error page.

Comments are welcome.

Reproducible: Always
Related to Bug 482874/Bug 479922?
You need to log in before you can comment on or make changes to this bug.