Commit 2103ad5
committed
Punycode encode U+0138 in the host of a displayed URL
https://bugs.webkit.org/show_bug.cgi?id=306981
rdar://166796168
Reviewed by Tim Nguyen.
It is punycode encoded when displayed in Chrome and Firefox.
It doesn't meet our usual requirement for considering a spoofing
character because it is visually distinguishable from k, but
since other browsers have already done this and since its
linguistic use seems to have been replaced by q, let's do the same.
Test: Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm
* Source/WTF/wtf/URLHelpers.cpp:
(WTF::URLHelpers::isLookalikeCharacter):
* Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm:
(TestWebKitAPI::TEST(URLExtras, URLExtras_Spoof)):
Canonical link: https://commits.webkit.org/307005@main1 parent 2ebfc07 commit 2103ad5
File tree
2 files changed
+2
-0
lines changed- Source/WTF/wtf
- Tools/TestWebKitAPI/Tests/WTF/cocoa
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
0 commit comments