LibWeb/Fetch: Add "json" destination for JSON modules

This is a change in the Fetch spec.

See:
- https://github.com/whatwg/fetch/commit/49bff76
This commit is contained in:
Jamie Mansfield 2024-04-29 20:11:02 +01:00 committed by Andreas Kling
parent 527ad9ac01
commit da8d0d82c0
Notes: sideshowbarker 2024-07-16 20:44:03 +09:00

View File

@ -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