diff --git a/fetch.bs b/fetch.bs index 98ff55c21..703ef30ce 100644 --- a/fetch.bs +++ b/fetch.bs @@ -2846,16 +2846,7 @@ steps: connection. -
  • -

    Let proxies be the result of finding proxies for url in an - implementation-defined manner. If there are no proxies, let proxies be - « "DIRECT" ». - -

    This is where non-standard technology such as - Web Proxy Auto-Discovery Protocol (WPAD) - and proxy auto-config (PAC) come - into play. The "DIRECT" value means to not use a proxy for this particular - url. +

  • Let proxies of calling resolve proxies.

  • Let timingInfo be a new connection timing info. @@ -2912,6 +2903,19 @@ reused across connections whose credentials are fal


    +
    +

    To resolve proxies, return the result of finding proxies for url in an +implementation-defined manner. If there are no proxies, return « "DIRECT" ». + +

    This is where non-standard technology such as +Web Proxy Auto-Discovery Protocol (WPAD) +and proxy auto-config (PAC) come +into play. The "DIRECT" value means to not use a proxy for this particular +url. +

    + +
    +

    To create a connection, given a network partition key key, origin origin, boolean credentials, string proxy, @@ -3023,7 +3027,7 @@ details of reused connections are not exposed and time values are coarsened.

    -

    Preemptive connection operations

    +

    Preemptive connections

    To preemptively obtain a connection, given an @@ -3066,13 +3070,11 @@ these steps:

  • Check CSP for preemptive operation with environment and url. If that returns blocked, return. -

  • Let proxies be the result of finding proxies for url in an - implementation-defined manner. +

  • Let proxies be the result of calling resolve proxies.

  • -

    If proxies is empty, or if proxies - contains "DIRECT", then resolve an origin given key - and url's origin. +

    If proxies contains "DIRECT", then + resolve an origin given key and url's origin.

    As the results of this algorithm can be cached, future fetches could be faster. @@ -3090,7 +3092,6 @@ run these steps:

  • Return the result of running should request be blocked by Content Security Policy? given request. - @@ -8782,7 +8783,7 @@ to discuss. [[CSP]] environment settings object you're operating in. Web-exposed APIs are generally defined with Web IDL, for which every object that implements an interface has a relevant settings object you can use. For example, a request associated with an -{{Element}} would set the request's client to the element's +element would set the request's client to the element's node document's relevant settings object. All features that are directly web-exposed by JavaScript, HTML, CSS, or other {{Document}} subresources should have a client.