From acc1c2b3cb1e41a931431837afeff9d6ec600caf Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 15 Oct 2022 00:42:52 +0200 Subject: [PATCH] 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 --- .../Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h index 81d6e7ebc8..ae99aac9e0 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h @@ -60,6 +60,7 @@ public: Style, Track, Video, + WebIdentity, Worker, XSLT, }; @@ -353,7 +354,8 @@ private: Optional 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 m_destination; // https://fetch.spec.whatwg.org/#concept-request-priority