Closed Bug 722244 Opened 14 years ago Closed 14 years ago

Add API to validate URIs host against public TLDs only

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Felipe, Unassigned)

References

Details

In bug 690827 we need to verify if a string foo.bar represents a valid public URL that the browser can navigate to. That is: - it has the valid syntax -- which will be verified by building a nsIURI - it uses a known TLD -- this will be used to remove false positives for that feature The effective TLD service seems like the best place to put this, since it already has the public suffix list in a hash table.
While the effective_tld_names.dat file has a lot of the tld's in it ("com", etc), these actually currently get thrown away (we only need entries with '.'s in them to do the ETLD algorithm correctly). We could however easily add a separate list of TLDs (not eTLDs) and do this. See bug 690827 comment 17 for some details.
WONTFIXing based on bug 690827 comment 19 and 20.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.