Title: [218907] trunk
- Revision
- 218907
- Author
- achristen...@apple.com
- Date
- 2017-06-28 18:11:06 -0700 (Wed, 28 Jun 2017)
Log Message
Prevent displaying URLs with small capital letters
https://bugs.webkit.org/show_bug.cgi?id=173949
<rdar://problem/32952058>
Reviewed by Brent Fulgham.
Source/WebCore:
Covered by new API tests.
* platform/mac/WebCoreNSURLExtras.mm:
(WebCore::isLookalikeCharacter):
Tools:
* TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
(TestWebKitAPI::TEST):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (218906 => 218907)
--- trunk/Source/WebCore/ChangeLog 2017-06-29 00:51:36 UTC (rev 218906)
+++ trunk/Source/WebCore/ChangeLog 2017-06-29 01:11:06 UTC (rev 218907)
@@ -1,3 +1,16 @@
+2017-06-28 Alex Christensen <achristen...@webkit.org>
+
+ Prevent displaying URLs with small capital letters
+ https://bugs.webkit.org/show_bug.cgi?id=173949
+ <rdar://problem/32952058>
+
+ Reviewed by Brent Fulgham.
+
+ Covered by new API tests.
+
+ * platform/mac/WebCoreNSURLExtras.mm:
+ (WebCore::isLookalikeCharacter):
+
2017-06-28 Youenn Fablet <you...@apple.com>
Support PeerConnectionStates::BundlePolicy::MaxBundle when setting rtc configuration
Modified: trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm (218906 => 218907)
--- trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm 2017-06-29 00:51:36 UTC (rev 218906)
+++ trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm 2017-06-29 01:11:06 UTC (rev 218907)
@@ -103,6 +103,12 @@
case 0x0703: /* SYRIAC SUPRALINEAR COLON */
case 0x0704: /* SYRIAC SUBLINEAR COLON */
case 0x1735: /* PHILIPPINE SINGLE PUNCTUATION */
+ case 0x1D04: /* LATIN LETTER SMALL CAPITAL C */
+ case 0x1D0F: /* LATIN LETTER SMALL CAPITAL O */
+ case 0x1D1C: /* LATIN LETTER SMALL CAPITAL U */
+ case 0x1D20: /* LATIN LETTER SMALL CAPITAL V */
+ case 0x1D21: /* LATIN LETTER SMALL CAPITAL W */
+ case 0x1D22: /* LATIN LETTER SMALL CAPITAL Z */
case 0x2024: /* ONE DOT LEADER */
case 0x2027: /* HYPHENATION POINT */
case 0x2039: /* SINGLE LEFT-POINTING ANGLE QUOTATION MARK */
@@ -159,6 +165,7 @@
case 0x33AF: /* SQUARE RAD OVER S SQUARED */
case 0x33C6: /* SQUARE C OVER KG */
case 0x33DF: /* SQUARE A OVER M */
+ case 0xA731: /* LATIN LETTER SMALL CAPITAL S */
case 0xA789: /* MODIFIER LETTER COLON */
case 0xFE14: /* PRESENTATION FORM FOR VERTICAL SEMICOLON */
case 0xFE15: /* PRESENTATION FORM FOR VERTICAL EXCLAMATION MARK */
Modified: trunk/Tools/ChangeLog (218906 => 218907)
--- trunk/Tools/ChangeLog 2017-06-29 00:51:36 UTC (rev 218906)
+++ trunk/Tools/ChangeLog 2017-06-29 01:11:06 UTC (rev 218907)
@@ -1,3 +1,14 @@
+2017-06-28 Alex Christensen <achristen...@webkit.org>
+
+ Prevent displaying URLs with small capital letters
+ https://bugs.webkit.org/show_bug.cgi?id=173949
+ <rdar://problem/32952058>
+
+ Reviewed by Brent Fulgham.
+
+ * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
+ (TestWebKitAPI::TEST):
+
2017-06-28 Brent Fulgham <bfulg...@apple.com>
Unreviewed test fix.
Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm (218906 => 218907)
--- trunk/Tools/TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm 2017-06-29 00:51:36 UTC (rev 218906)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm 2017-06-29 01:11:06 UTC (rev 218907)
@@ -82,6 +82,14 @@
"xn--a-egb", // a, U+034F
"xn--a-qgn", // a, U+200B
"xn--a-mgn", // a, U+2009
+ "xn--u7f", // U+1D04
+ "xn--57f", // U+1D0F
+ "xn--i38a", // U+A731
+ "xn--j8f", // U+1D1C
+ "xn--n8f", // U+1D20
+ "xn--o8f", // U+1D21
+ "xn--p8f", // U+1D22
+ "xn--0na", // U+0261
};
for (const String& host : punycodedSpoofHosts) {
auto url = "" host, "/").utf8();
@@ -171,3 +179,4 @@
}
} // namespace TestWebKitAPI
+
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes