From ee6500f3b966adba5659f344c6686a9b4f15aa4a Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 11 Dec 2024 09:43:32 +0000 Subject: [PATCH 1/5] Move handling of request 'client' to algo --- fetch.bs | 53 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/fetch.bs b/fetch.bs index 5cbfef67..9ccdbad7 100644 --- a/fetch.bs +++ b/fetch.bs @@ -4279,6 +4279,8 @@ the response. [[!HTTP-CACHING]]
  • Let crossOriginIsolatedCapability be false. +

  • Populate request from client given request. +

  • If request's client is non-null, then: @@ -4324,16 +4326,6 @@ the response. [[!HTTP-CACHING]] request's body to request's body as a body. -

  • If request's window is "client", then set - request's window to request's client, - if request's client's - global object is a {{Window}} object; otherwise - "no-window". - -

  • If request's origin is "client", then set - request's origin to request's client's - origin. -

  • If all of the following conditions are true: @@ -4376,19 +4368,6 @@ the response. [[!HTTP-CACHING]]

  • -
  • -

    If request's policy container is "client", then: - -

      -
    1. If request's client is non-null, then set - request's policy container to a - clone of request's client's - policy container. [[!HTML]] - -

    2. Otherwise, set request's policy container to a new - policy container. -

    -
  • If request's header list does not contain `Accept`, then: @@ -4459,6 +4438,34 @@ the response. [[!HTTP-CACHING]] +

    +

    To populate request from client given a request request: +

      +
    1. If request's window is "client", then set + request's window to request's client, + if request's client's + global object is a {{Window}} object; otherwise + "no-window". + +

    2. If request's origin is "client", then set + request's origin to request's client's + origin. + +

    3. +

      If request's policy container is "client", then: + +

        +
      1. If request's client is non-null, then set + request's policy container to a + clone of request's client's + policy container. [[!HTML]] + +

      2. Otherwise, set request's policy container to a new + policy container. +

    + + +

    Main fetch

    From a2504a24471dc1e6d314fc26f91be136476ee0b0 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Sun, 15 Dec 2024 12:02:24 +0000 Subject: [PATCH 2/5] Update fetch.bs Co-authored-by: Anne van Kesteren --- fetch.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.bs b/fetch.bs index 9ccdbad7..bc0038ed 100644 --- a/fetch.bs +++ b/fetch.bs @@ -4452,7 +4452,7 @@ the response. [[!HTTP-CACHING]] origin.
  • -

    If request's policy container is "client", then: +

    If request's policy container is "client":

    1. If request's client is non-null, then set From e1a478fc034c680c30b521aca53f4665e8b2be42 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Sun, 15 Dec 2024 12:02:31 +0000 Subject: [PATCH 3/5] Update fetch.bs Co-authored-by: Anne van Kesteren --- fetch.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch.bs b/fetch.bs index bc0038ed..eb15ee76 100644 --- a/fetch.bs +++ b/fetch.bs @@ -4441,8 +4441,8 @@ the response. [[!HTTP-CACHING]]

      To populate request from client given a request request:

        -
      1. If request's window is "client", then set - request's window to request's client, +

      2. If request's window is "client", then: set + request's window to request's client if request's client's global object is a {{Window}} object; otherwise "no-window". From 0cbc4476fd9ac1de1b2e37fb917cd5bb4f527550 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Sun, 15 Dec 2024 12:03:02 +0000 Subject: [PATCH 4/5] nit --- fetch.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/fetch.bs b/fetch.bs index eb15ee76..861c6a8c 100644 --- a/fetch.bs +++ b/fetch.bs @@ -4440,6 +4440,7 @@ the response. [[!HTTP-CACHING]]

        To populate request from client given a request request: +

        1. If request's window is "client", then: set request's window to request's client From 708d8c1926d7ad65a0a807a094172aeba12637e2 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Mon, 16 Dec 2024 11:32:04 +0000 Subject: [PATCH 5/5] Update fetch.bs Co-authored-by: Anne van Kesteren --- fetch.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.bs b/fetch.bs index 861c6a8c..486a4956 100644 --- a/fetch.bs +++ b/fetch.bs @@ -4463,7 +4463,7 @@ the response. [[!HTTP-CACHING]]

        2. Otherwise, set request's policy container to a new policy container. -

        +