LibWeb/Fetch: Add "webidentity" destination for FedCM

This is a change in the Fetch spec.

See:
- https://github.com/whatwg/fetch/commit/30d462d
- https://github.com/whatwg/fetch/commit/7487a97
This commit is contained in:
Linus Groh 2022-10-15 00:42:52 +02:00
parent 5995a9fd06
commit acc1c2b3cb
Notes: sideshowbarker 2024-07-17 17:40:13 +09:00

View file

@ -60,6 +60,7 @@ public:
Style,
Track,
Video,
WebIdentity,
Worker,
XSLT,
};
@ -353,7 +354,8 @@ private:
Optional<Initiator> m_initiator;
// 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", "serviceworker", "sharedworker", "style", "track", "video", "worker", or "xslt". Unless stated otherwise it is the empty string.
// A request has an associated destination, which is the empty string, "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "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 those destinations skip service workers.
Optional<Destination> m_destination;
// https://fetch.spec.whatwg.org/#concept-request-priority