URL: Add test for hostnames which get IDNA-mapped to 'localhost' in file URLs
diff --git a/url/resources/urltestdata.json b/url/resources/urltestdata.json
index 9ad49bd..b681ad5 100644
--- a/url/resources/urltestdata.json
+++ b/url/resources/urltestdata.json
@@ -8140,6 +8140,21 @@
"search": "",
"hash": ""
},
+ "IDNA hostnames which get mapped to 'localhost'",
+ {
+ "input": "file://loC𝐀𝐋𝐇𝐨𝐬𝐭/usr/bin",
+ "base": "about:blank",
+ "href": "file:///usr/bin",
+ "protocol": "file:",
+ "username": "",
+ "password": "",
+ "host": "",
+ "hostname": "",
+ "port": "",
+ "pathname": "/usr/bin",
+ "search": "",
+ "hash": ""
+ },
"Empty host after the domain to ASCII",
{
"input": "file://\u00ad/p",