Closed Bug 283859 Opened 20 years ago Closed 20 years ago

Firefox 1.0.1 displays IDN instead of punycode on some domains

Categories

(Firefox :: Address Bar, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 264610

People

(Reporter: mozilla, Assigned: bugs)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.6) Gecko/20050223 Firefox/1.0.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.6) Gecko/20050223 Firefox/1.0.1 Firefox 1.0.1 fails to display the punycode of `dasörtliche.de', instead it shows the original IDN. "www.dasörtliche.de" will be transformed to www.xn--dasrtliche-gcb.de, but it fails on the URI without "www." prepended. If you enter "dasörtliche.de" into the address bar and press enter, the webpage is loading, but Firefox does not place `http://' in front, as on other web pages. Reproducible: Always Steps to Reproduce: 1. Enter "dasörtliche.de" or "http://dasörtliche.de/" into the address bar. 2. Click "Enter". Actual Results: The webpage loads and it still displays "dasörtliche.de" or "http://dasörtliche.de/" in the address bar. Expected Results: The webpage loads, but it prepends "http://" (if not entered) and displays the punycode http://www.xn--dasrtliche-gcb.de/ instead of the IDN.
Confirmed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Assignee: bugs → darin
Component: Toolbars → Networking
Product: Firefox → Core
QA Contact: bugzilla → benc
Version: unspecified → 1.0 Branch
Small correction to my "expected results": Firefox should display http://xn--dasrtliche-gcb.de/, not http://www.xn--dasrtliche-gcb.de/.
This is firefox only and could be caused by the autoreplace (adding www in front). wfm with Mozilla/5.0 (Windows; U; Windows NT 5.2; de-DE; rv:1.8b2) Gecko/20050226
Assignee: darin → bugs
Component: Networking → Location Bar and Autocomplete
Product: Core → Firefox
QA Contact: benc → davidpjames
Version: 1.0 Branch → unspecified
The problem isn't that it adds "www.", it's that the URL bar isn't updated with the URL obtained at: http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.js#3307 which results in having the domain displayed as typed.
I think I've got the reason for this behavior: "dasörtliche.de" (respectively the punycode "xn--dasrtliche-gcb.de") does not exist in DNS (only "www.xn--dasrtliche-gcb.de" exists), so Firefox prepends "http://www." and loads "http://www.xn--dasrtliche-gcb.de/", but does not update the address bar. I can reproduce the same bug on normal (not IDN) domains: enter "thomaskaschwig.de" (which has no DNS record) into the address bar. Firefox loads www.thomaskaschwig.de, which is a redirect to http://www.kaschwig.net/, but still displays "thomaskaschwig.de" in the address bar. The page info dialog shows the correct URI: http://www.kaschwig.net/
This seems to be a duplicate of bug 264610. *** This bug has been marked as a duplicate of 264610 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.