From da8d0d82c0c0e733e6485717f12a3956f1776881 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Mon, 29 Apr 2024 20:11:02 +0100 Subject: [PATCH] LibWeb/Fetch: Add "json" destination for JSON modules This is a change in the Fetch spec. See: - https://github.com/whatwg/fetch/commit/49bff76 --- Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h index 5836b973e08..406bf0746bd 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h @@ -56,6 +56,7 @@ public: Frame, IFrame, Image, + JSON, Manifest, Object, PaintWorklet, @@ -388,7 +389,7 @@ private: // https://fetch.spec.whatwg.org/#concept-request-destination // A request has an associated destination, which is the empty string, "audio", "audioworklet", "document", - // "embed", "font", "frame", "iframe", "image", "manifest", "object", "paintworklet", "report", "script", + // "embed", "font", "frame", "iframe", "image", "json", "manifest", "object", "paintworklet", "report", "script", // "serviceworker", "sharedworker", "style", "track", "video", "webidentity", "worker", or "xslt". Unless stated // otherwise it is the empty string. // NOTE: These are reflected on RequestDestination except for "serviceworker" and "webidentity" as fetches with