Title: [230731] branches/safari-605-branch
Revision
230731
Author
kocsen_ch...@apple.com
Date
2018-04-17 15:14:58 -0700 (Tue, 17 Apr 2018)

Log Message

Cherry-pick r230530. rdar://problem/39462749

    Show punycode if URL contains Latin dum character
    https://bugs.webkit.org/show_bug.cgi?id=184477
    <rdar://problem/39121999>

    Reviewed by David Kilzer.

    Source/WebCore:

    Revise our "lookalike character" logic to include the small
    Latin dum character.

    Test: fast/url/host.html

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

    LayoutTests:

    * fast/url/host-expected.txt:
    * fast/url/host.html:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230530 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-605-branch/LayoutTests/ChangeLog (230730 => 230731)


--- branches/safari-605-branch/LayoutTests/ChangeLog	2018-04-17 22:13:28 UTC (rev 230730)
+++ branches/safari-605-branch/LayoutTests/ChangeLog	2018-04-17 22:14:58 UTC (rev 230731)
@@ -1,3 +1,42 @@
+2018-04-17  Kocsen Chung  <kocsen_ch...@apple.com>
+
+        Cherry-pick r230530. rdar://problem/39462749
+
+    Show punycode if URL contains Latin dum character
+    https://bugs.webkit.org/show_bug.cgi?id=184477
+    <rdar://problem/39121999>
+    
+    Reviewed by David Kilzer.
+    
+    Source/WebCore:
+    
+    Revise our "lookalike character" logic to include the small
+    Latin dum character.
+    
+    Test: fast/url/host.html
+    
+    * platform/mac/WebCoreNSURLExtras.mm:
+    (WebCore::isLookalikeCharacter):
+    
+    LayoutTests:
+    
+    * fast/url/host-expected.txt:
+    * fast/url/host.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2018-04-11  Brent Fulgham  <bfulg...@apple.com>
+
+            Show punycode if URL contains Latin dum character
+            https://bugs.webkit.org/show_bug.cgi?id=184477
+            <rdar://problem/39121999>
+
+            Reviewed by David Kilzer.
+
+            * fast/url/host-expected.txt:
+            * fast/url/host.html:
+
 2018-04-11  Kocsen Chung  <kocsen_ch...@apple.com>
 
         Cherry-pick r230513. rdar://problem/39337459

Modified: branches/safari-605-branch/LayoutTests/fast/url/host-expected.txt (230730 => 230731)


--- branches/safari-605-branch/LayoutTests/fast/url/host-expected.txt	2018-04-17 22:13:28 UTC (rev 230730)
+++ branches/safari-605-branch/LayoutTests/fast/url/host-expected.txt	2018-04-17 22:14:58 UTC (rev 230731)
@@ -47,6 +47,7 @@
 PASS canonicalize('http://quip‐apple.com/') is 'http://xn--quipapple-y79d.com/'
 PASS canonicalize('http://quip‑apple.com/') is 'http://xn--quipapple-y79d.com/'
 PASS canonicalize('http://quip−apple.com/') is 'http://xn--quipapple-tf4e.com/'
+PASS canonicalize('http://iclouꝱ.com/') is 'http://xn--iclou-rl3s.com/'
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: branches/safari-605-branch/LayoutTests/fast/url/host.html (230730 => 230731)


--- branches/safari-605-branch/LayoutTests/fast/url/host.html	2018-04-17 22:13:28 UTC (rev 230730)
+++ branches/safari-605-branch/LayoutTests/fast/url/host.html	2018-04-17 22:14:58 UTC (rev 230731)
@@ -87,7 +87,8 @@
   ["@google.com","google.com"],
   ["quip\u2010apple.com", "xn--quipapple-y79d.com"],
   ["quip\u2011apple.com", "xn--quipapple-y79d.com"],
-  ["quip\u2212apple.com", "xn--quipapple-tf4e.com"]
+  ["quip\u2212apple.com", "xn--quipapple-tf4e.com"],
+  ["iclou\uA771.com", "xn--iclou-rl3s.com"]
 ];
 
 for (var i = 0; i < cases.length; ++i) {

Modified: branches/safari-605-branch/Source/WebCore/ChangeLog (230730 => 230731)


--- branches/safari-605-branch/Source/WebCore/ChangeLog	2018-04-17 22:13:28 UTC (rev 230730)
+++ branches/safari-605-branch/Source/WebCore/ChangeLog	2018-04-17 22:14:58 UTC (rev 230731)
@@ -1,3 +1,47 @@
+2018-04-17  Kocsen Chung  <kocsen_ch...@apple.com>
+
+        Cherry-pick r230530. rdar://problem/39462749
+
+    Show punycode if URL contains Latin dum character
+    https://bugs.webkit.org/show_bug.cgi?id=184477
+    <rdar://problem/39121999>
+    
+    Reviewed by David Kilzer.
+    
+    Source/WebCore:
+    
+    Revise our "lookalike character" logic to include the small
+    Latin dum character.
+    
+    Test: fast/url/host.html
+    
+    * platform/mac/WebCoreNSURLExtras.mm:
+    (WebCore::isLookalikeCharacter):
+    
+    LayoutTests:
+    
+    * fast/url/host-expected.txt:
+    * fast/url/host.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2018-04-11  Brent Fulgham  <bfulg...@apple.com>
+
+            Show punycode if URL contains Latin dum character
+            https://bugs.webkit.org/show_bug.cgi?id=184477
+            <rdar://problem/39121999>
+
+            Reviewed by David Kilzer.
+
+            Revise our "lookalike character" logic to include the small
+            Latin dum character.
+
+            Test: fast/url/host.html
+
+            * platform/mac/WebCoreNSURLExtras.mm:
+            (WebCore::isLookalikeCharacter):
+
 2018-04-11  Kocsen Chung  <kocsen_ch...@apple.com>
 
         Cherry-pick r230513. rdar://problem/39337459

Modified: branches/safari-605-branch/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm (230730 => 230731)


--- branches/safari-605-branch/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm	2018-04-17 22:13:28 UTC (rev 230730)
+++ branches/safari-605-branch/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm	2018-04-17 22:14:58 UTC (rev 230731)
@@ -207,6 +207,7 @@
         case 0x33C6: /* SQUARE C OVER KG */
         case 0x33DF: /* SQUARE A OVER M */
         case 0xA731: /* LATIN LETTER SMALL CAPITAL S */
+        case 0xA771: /* LATIN SMALL LETTER DUM */
         case 0xA789: /* MODIFIER LETTER COLON */
         case 0xFE14: /* PRESENTATION FORM FOR VERTICAL SEMICOLON */
         case 0xFE15: /* PRESENTATION FORM FOR VERTICAL EXCLAMATION MARK */
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to