Title: [230530] trunk
Revision
230530
Author
bfulg...@apple.com
Date
2018-04-11 10:03:55 -0700 (Wed, 11 Apr 2018)

Log Message

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:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (230529 => 230530)


--- trunk/LayoutTests/ChangeLog	2018-04-11 16:58:23 UTC (rev 230529)
+++ trunk/LayoutTests/ChangeLog	2018-04-11 17:03:55 UTC (rev 230530)
@@ -1,3 +1,14 @@
+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  Wenson Hsieh  <wenson_hs...@apple.com>
 
         [Extra zoom mode] Missing label when focusing a <select> with a title attribute but no associated <label>

Modified: trunk/LayoutTests/fast/url/host-expected.txt (230529 => 230530)


--- trunk/LayoutTests/fast/url/host-expected.txt	2018-04-11 16:58:23 UTC (rev 230529)
+++ trunk/LayoutTests/fast/url/host-expected.txt	2018-04-11 17:03:55 UTC (rev 230530)
@@ -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: trunk/LayoutTests/fast/url/host.html (230529 => 230530)


--- trunk/LayoutTests/fast/url/host.html	2018-04-11 16:58:23 UTC (rev 230529)
+++ trunk/LayoutTests/fast/url/host.html	2018-04-11 17:03:55 UTC (rev 230530)
@@ -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: trunk/Source/WebCore/ChangeLog (230529 => 230530)


--- trunk/Source/WebCore/ChangeLog	2018-04-11 16:58:23 UTC (rev 230529)
+++ trunk/Source/WebCore/ChangeLog	2018-04-11 17:03:55 UTC (rev 230530)
@@ -1,3 +1,19 @@
+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  Michael Catanzaro  <mcatanz...@igalia.com>
 
         [GTK] WaylandCompositorDisplay leaks its wl_display

Modified: trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm (230529 => 230530)


--- trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm	2018-04-11 16:58:23 UTC (rev 230529)
+++ trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm	2018-04-11 17:03:55 UTC (rev 230530)
@@ -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