Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2103ad5a4626e42c67da71bba19c8bdc3f89bc36
https://github.com/WebKit/WebKit/commit/2103ad5a4626e42c67da71bba19c8bdc3f89bc36
Author: Alex Christensen <[email protected]>
Date: 2026-02-07 (Sat, 07 Feb 2026)
Changed paths:
M Source/WTF/wtf/URLHelpers.cpp
M Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm
Log Message:
-----------
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@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications