Show punycode to user if a URL has dotless i or j followed by diacritic dot
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Jun 2017 23:43:57 +0000 (23:43 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Jun 2017 23:43:57 +0000 (23:43 +0000)
commit82719c683c555ef9e86f379a24820d021596171e
tree301b3f6b614a924452324e6f15af43fcf4669d10
parentad7c7e3d0af32e516e3f5cae6b02abb317f274c4
Show punycode to user if a URL has dotless i or j followed by diacritic dot
https://bugs.webkit.org/show_bug.cgi?id=173431

Reviewed by Darin Adler.

Source/WebCore:

Covered by new API tests.

* platform/mac/WebCoreNSURLExtras.mm:
(WebCore::isLookalikeCharacter):
(WebCore::allCharactersInIDNScriptWhiteList):
(WebCore::createStringWithEscapedUnsafeCharacters):

Tools:

* TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mac/WebCoreNSURLExtras.mm
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm