Bug 1635804 [wpt PR 23432] - URL: test IDNA ignored code points in host, a=testonly
authorRimas Misevičius <rmisev3@gmail.com>
Wed, 13 May 2020 09:45:05 +0000
changeset 531117 e89c41f66d9a14e80b231a13a3fc2a58e9e7a47f
parent 531116 fb8445a47c0f806c50ed6c4ffb67c178ff945858
child 531118 58cad4098789d440e85da22295bbb7b9a7404422
push id37435
push userapavel@mozilla.com
push dateWed, 20 May 2020 15:28:23 +0000
treeherdermozilla-central@5415da14ec9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1635804, 23432
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1635804 [wpt PR 23432] - URL: test IDNA ignored code points in host, a=testonly Automatic update from web-platform-tests URL: test IDNA ignored code points in host See https://github.com/whatwg/url/pull/497 for context. -- wpt-commits: e9a106175a02a192a7239f42a94235fbe0f0c7a3 wpt-pr: 23432
testing/web-platform/tests/url/resources/toascii.json
testing/web-platform/tests/url/resources/urltestdata.json
--- a/testing/web-platform/tests/url/resources/toascii.json
+++ b/testing/web-platform/tests/url/resources/toascii.json
@@ -140,10 +140,32 @@
   },
   {
     "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--nxa",
     "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--nxa"
   },
   {
     "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.β",
     "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--nxa"
+  },
+  {
+    "comment": "IDNA ignored code points",
+    "input": "a\u00ADb",
+    "output": "ab"
+  },
+  {
+    "input": "a%C2%ADb",
+    "output": "ab"
+  },
+  {
+    "comment": "Empty host after domain to ASCII",
+    "input": "\u00AD",
+    "output": null
+  },
+  {
+    "input": "%C2%AD",
+    "output": null
+  },
+  {
+    "input": "xn--",
+    "output": null
   }
 ]
--- a/testing/web-platform/tests/url/resources/urltestdata.json
+++ b/testing/web-platform/tests/url/resources/urltestdata.json
@@ -6750,10 +6750,55 @@
     "username": "",
     "password": "",
     "host": "",
     "hostname": "",
     "port": "",
     "pathname": "foo/bar",
     "search": "",
     "hash": ""
+  },
+  "IDNA ignored code points in file URLs hosts",
+  {
+    "input": "file://a\u00ADb/p",
+    "base": "about:blank",
+    "href": "file://ab/p",
+    "protocol": "file:",
+    "username": "",
+    "password": "",
+    "host": "ab",
+    "hostname": "ab",
+    "port": "",
+    "pathname": "/p",
+    "search": "",
+    "hash": ""
+  },
+  {
+    "input": "file://a%C2%ADb/p",
+    "base": "about:blank",
+    "href": "file://ab/p",
+    "protocol": "file:",
+    "username": "",
+    "password": "",
+    "host": "ab",
+    "hostname": "ab",
+    "port": "",
+    "pathname": "/p",
+    "search": "",
+    "hash": ""
+  },
+  "Empty host after the domain to ASCII",
+  {
+    "input": "file://\u00ad/p",
+    "base": "about:blank",
+    "failure": true
+  },
+  {
+    "input": "file://%C2%AD/p",
+    "base": "about:blank",
+    "failure": true
+  },
+  {
+    "input": "file://xn--/p",
+    "base": "about:blank",
+    "failure": true
   }
 ]