WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
16559
Navigation to server Safari cannot connect to seems glitchy
https://bugs.webkit.org/show_bug.cgi?id=16559
Summary
Navigation to server Safari cannot connect to seems glitchy
Erik van der Poel
Reported
2007-12-21 10:43:24 PST
Found another issue in Safari 3, where the unescaping and punycoding are done in the wrong order. Here's an example: <a href="
http://十%2ecom/
">link</a> When you click on that link, Safari ends up sending the following (wrong) domain name to DNS: xn--.com-9b5j This is because Safari is first running the host name through IDNA to get Punycode and *then* unescaping the %2e to get the dot. It should first unescape the %2e to get the dot, and then separate the host name into labels, and then run IDNA on the 1st label only, since it is non-ASCII. The result should be xn--kkr.com. Both MSIE 7 and Opera 9 get this right, but Firefox gets it wrong, in a different way. This bug may be more serious than the following, since it affects how a hostname is divided into labels at each dot.
http://bugs.webkit.org/show_bug.cgi?id=13167
I suspect that both of these bugs would be fixed by a single check-in.
Attachments
HTML snippet with %-escaped dot in host name
(42 bytes, text/html)
2007-12-21 16:32 PST
,
Erik van der Poel
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2007-12-21 15:31:32 PST
Can you put the HTML snippet you mentioned into an attachment on the bug? Bugzilla has a habit of mangling non-ASCII characters which makes it hard to decipher your original snippet.
Erik van der Poel
Comment 2
2007-12-21 16:32:02 PST
Created
attachment 18047
[details]
HTML snippet with %-escaped dot in host name
Mark Rowe (bdash)
Comment 3
2008-03-17 15:25:55 PDT
<
rdar://problem/5803718
>
Ahmad Saleem
Comment 4
2022-07-25 16:54:38 PDT
I am not sure on expected behavior but unlike other browsers - Safari 15.6 on macOS 12.5 briefly (few second) change the URL of webpage but then change back to Webkit attachment and get stuck in loading forever this webpage and then fail eventually and even show "Safari can’t open the page “十.com”" in the error message. All other browsers don't update their URL box but give this error message: Firefox Nightly 104 - The server at xn--kkr.com is taking too long to respond. Chrome Canary 106 - 十.com took too long to respond. I am not sure on Web-spec but please update this bug accordingly. Thanks!
Anne van Kesteren
Comment 5
2023-05-27 06:04:36 PDT
Yeah, I agree that is weird. That is a different problem from
comment 0
, but seems worth tracking.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug