From fb9259d4ac186eb11ec0aa31539f489609dff2a8 Mon Sep 17 00:00:00 2001 From: Benjamin VanderSloot Date: Fri, 31 Jan 2025 13:12:38 -0500 Subject: [PATCH] Add the request initiator origin and fix its use --- fetch.bs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fetch.bs b/fetch.bs index e65c51056..8c426e1a1 100644 --- a/fetch.bs +++ b/fetch.bs @@ -67,7 +67,6 @@ urlPrefix:https://www.ietf.org/archive/id/draft-annevk-johannhof-httpbis-cookies urlPrefix:https://html.spec.whatwg.org#;type:dfn;spec:html url:TODO;text:ancestry;for:environment url:TODO;text:has storage access;for:environment - url:TODO;text:initiator origin;for:request
@@ -1957,6 +1956,10 @@ not always relevant and might require different behavior.
 "client" or an origin. Unless stated otherwise it is
 "client".
 
+

A request has an associated +navigation initiator origin, which is +an origin or null. Unless stated otherwise it is null. +

"client" is changed to an origin during fetching. It provides a convenient way for standards to not have to set request's origin. @@ -3385,11 +3388,11 @@ given a request request and a response To determine the same-site mode for a given request request, run these steps:

  1. Assert: request's method is "GET" or "POST". +

  2. If request's navigation initiator origin is not null and is not same site to request's URL's origin, return "UnsetOrLess".

  3. If request's method is "GET" and request's destination is "document", return "LaxOrLess".

  4. If request's client's ancestry is "cross-site", return "UnsetOrLess".

  5. If request's redirect-taint is "Cross-Site", return "UnsetOrLess". -

  6. If request's initiator origin is not same site to request's URL's origin, return "UnsetOrLess".

  7. Return "StrictOrLess".