From 7c79d998ff42e52de90290cb847d1b515b3b58f7 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Tue, 25 Jan 2022 11:58:28 +0100 Subject: [PATCH] Add tests for processing non-ASCII data URLs (#32447) In particular, that any `charset` parameter of the MIME type does not affect the URL parsing or decoding of the content. --- fetch/data-urls/resources/data-urls.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fetch/data-urls/resources/data-urls.json b/fetch/data-urls/resources/data-urls.json index be1d1e74cf5f51..f318d1f3e547d3 100644 --- a/fetch/data-urls/resources/data-urls.json +++ b/fetch/data-urls/resources/data-urls.json @@ -52,6 +52,12 @@ ["data:text/plain;Charset=UTF-8,%C2%B1", "text/plain;charset=UTF-8", [194, 177]], + ["data:text/plain;charset=windows-1252,áñçə💩", + "text/plain;charset=windows-1252", + [195, 161, 195, 177, 195, 167, 201, 153, 240, 159, 146, 169]], + ["data:text/plain;charset=UTF-8,áñçə💩", + "text/plain;charset=UTF-8", + [195, 161, 195, 177, 195, 167, 201, 153, 240, 159, 146, 169]], ["data:image/gif,%C2%B1", "image/gif", [194, 177]],