From 37659e99f90a2bcfcd5d78a67bc06e34f3bc332c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Sun, 29 Oct 2023 21:12:39 +0100 Subject: [PATCH] Use appropriate fetch destination for CSS & JSON modules Builds on https://github.com/whatwg/fetch/pull/1691. Tests: https://github.com/web-platform-tests/wpt/pull/41665. Fixes #7233. --- source | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/source b/source index 14ed9a706fb..d056382f8cc 100644 --- a/source +++ b/source @@ -27288,6 +27288,9 @@ document.body.appendChild(wbr);
  • destination is "font" and mimeTypeRecord is a font MIME type;

  • +
  • destination is "json" and + mimeTypeRecord is a JSON MIME type

    ;
  • +
  • destination is "style" and mimeTypeRecord's essence is text/css; or

  • @@ -104824,11 +104827,14 @@ document.querySelector("button").addEventListener("click", bound);
  • Let request be a new request whose URL is url, destination is destination, mode is "cors", referrer is referrer, and client is fetchClient.

  • +
  • Set request's destination to + the result of running the fetch destination from module type steps given + destination and moduleType.

  • +