If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

no punycode encoded domain in window.location.host and flash-host

RESOLVED INCOMPLETE

Status

()

Firefox
General
RESOLVED INCOMPLETE
9 years ago
5 months ago

People

(Reporter: j, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-11-01], URL)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3

When I go to a site with an IDN-domainname as http://www.arsnavigandi-münchen.de (mind the 2 dots on the u) and I check the value of window.location.host in javascript or the host in flash-player I see "www.arsnavigandi-münchen.de" instead of "www.xn--arsnavigandi-mnchen-jbc.de". All other browsers I have tested so far encode the domainname with punycode. 

Reproducible: Always

Steps to Reproduce:
1. go to the site: http://www.arsnavigandi-münchen.de
2. watch the output of javascript an flash
Actual Results:  
www.arsnavigandi-münchen.de is displayed

Expected Results:  
www.xn--arsnavigandi-mnchen-jbc.de should be displayed
(Reporter)

Comment 1

9 years ago
Update: The real issue is that flash-player tries to load any asset as a video from the address http://www.arsnavigandi-m%FCnchen.de insted of the IDN-encoded URL.
This is a mass search for bugs which are in the Firefox General component, are
UNCO, have not been changed for 500 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE

Comment 4

6 years ago
Bug still exists

Comment 5

6 years ago
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0

Comment 6

5 years ago
Confirmed for:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0

Another example:
http://www.bäume-für-deutschland.de/
location.host is "www.bäume-für-deutschland.de" instead of "www.xn--bume-fr-deutschland-gwb32c.de".

Flashplayer fails to load clips from this domain.

Comment 7

5 years ago
Confirmed for:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0

example: http://gästehaus-kapellen-drusweiler.de/
window.location.host: gästehaus-kapellen-drusweiler.de

clip loaded in flash reports url: http://gästehaus-kapellen-drusweiler.de/path-to-swf/container.swf
The mistake in the URL is true. It appears that the a-umlaut is incorrectly encoded; perhaps the host name should be in punycode.

Comment 8

10 months ago
This is still an issue. We discovered this due to the newly introduced usage of window.location.host in Moodle. See https://tracker.moodle.org/browse/MDL-57092.

Comment 9

5 months ago
The problem with punycode still exists! Some WordPress plugins wont run on our site (https://bluetooth-kopfhörer-test.com/) because of this issue... One example is the plugin "heatmap", which wont work with Firefox but works perfeclty fine with other browsers. Can anyone tell when the bug will be fixed? I see that this was mentioned 9 years (!) ago for the first time.
You need to log in before you can comment on or make changes to this bug.