From f64322aad71d4c6235ff5e4ebae77fecbc80209c Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Mon, 8 May 2023 14:12:36 +0300 Subject: [PATCH] Use boolean for algo --- fetch.bs | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/fetch.bs b/fetch.bs index a9e1ab1b..496c67b0 100644 --- a/fetch.bs +++ b/fetch.bs @@ -2850,7 +2850,7 @@ steps: connection. -
  • Let proxies of calling resolve proxies given url. +

  • Let proxies be the result of calling resolve proxies given url.

  • Let timingInfo be a new connection timing info. @@ -3044,8 +3044,8 @@ boolean credentials, run these steps: environment.

  • -

    Run Should connection be allowed by Content Security Policy? with - environment and url. If that returns allowed, +

    Run determine if Content Security Policy allows connection with + environment and url. If that returns true, obtain a connection with key, url, and credentials.

    This connection is obtained but not used directly. It will remain in the @@ -3063,7 +3063,7 @@ boolean credentials, run these steps: -

    +

    To preemptively resolve an origin, given an environment settings object environment and a URL url, run these steps: @@ -3072,8 +3072,8 @@ these steps:

  • Let key be the result of determining the network partition key given environment. -

  • Run

    Should connection be allowed by Content Security Policy? with - environment and url. If that returns blocked, return. +

  • Run

    determine if Content Security Policy allows connection with + environment and url. If that returns false, return.

  • Let proxies be the result of calling resolve proxies. @@ -3085,18 +3085,19 @@ these steps: -

    -

    To Should connection be allowed by Content Security Policy?, given an -environment settings object environment, and a URL url, -run these steps: +

    +

    To determine if Content Security Policy allows connection, given an +environment settings object environment, and a URL url:

    1. Let request be a request whose URL is url, initiator is "prefetch", and whose client is environment. -

    2. Return the result of running should request be blocked by Content Security Policy? - given request. +

    3. Let result be the result of running + should request be blocked by Content Security Policy? given request. + +

    4. Return true if result is allowed, otherwise false.