From 07ae085a9b142aedd6a44ffc48be496a8d3a6fa9 Mon Sep 17 00:00:00 2001 From: Karl <5254025+karwa@users.noreply.github.com> Date: Sun, 16 May 2021 08:42:53 +0200 Subject: [PATCH] [URL] Add expected failure tests for ASCII domains whose labels contain invalid IDNA (#29008) --- url/resources/urltestdata.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/url/resources/urltestdata.json b/url/resources/urltestdata.json index bb156f126bf9b6..1adea150918e94 100644 --- a/url/resources/urltestdata.json +++ b/url/resources/urltestdata.json @@ -3645,6 +3645,17 @@ "search": "?%EF%BF%BD", "hash": "#%EF%BF%BD" }, + "Domain is ASCII, but a label is invalid IDNA", + { + "input": "http://a.b.c.xn--pokxncvks", + "base": "about:blank", + "failure": true + }, + { + "input": "http://10.0.0.xn--pokxncvks", + "base": "about:blank", + "failure": true + }, "Test name prepping, fullwidth input should be converted to ASCII and NOT IDN-ized. This is 'Go' in fullwidth UTF-8/UTF-16.", { "input": "http://Go.com",