Skip to content

Commit

Permalink
A few editorial nits
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed May 7, 2023
1 parent 6d5759c commit c005718
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2846,7 +2846,7 @@ steps:
<a>connection</a>.
</ol>

<li><p>Let <var>proxies</var> of calling <a>resolve proxies</a>.
<li><p>Let <var>proxies</var> of calling <a>resolve proxies</a> given <var>url</var>.

<li><p>Let <var>timingInfo</var> be a new <a for=/>connection timing info</a>.

Expand Down Expand Up @@ -2904,8 +2904,9 @@ reused across <a>connections</a> whose <a for=connection>credentials</a> are fal
<hr>

<div algorithm>
<p>To <dfn>resolve proxies</dfn>, return the result of finding proxies for <var>url</var> in an
<a>implementation-defined</a> manner. If there are no proxies, return « "<code>DIRECT</code>" ».
<p>To <dfn>resolve proxies</dfn> given a <a for=/>URL</a> <var>url</var>, return the result of
finding proxies for <var>url</var> in an <a>implementation-defined</a> manner. If there are no
proxies, return « "<code>DIRECT</code>" ».

<p class=note>This is where non-standard technology such as
<a href="https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol">Web Proxy Auto-Discovery Protocol (WPAD)</a>
Expand Down Expand Up @@ -3029,7 +3030,7 @@ details of reused connections are not exposed and time values are coarsened.

<h3 id=preemptive-connections>Preemptive connections</h3>

<div algorithm="preemmptively-obtain-a-connection">
<div algorithm>
<p>To <dfn export>preemptively obtain a connection</dfn>, given an
<a>environment settings object</a> <var>environment</var>, a <a for=/>URL</a> <var>url</var>, and a
boolean <var>credentials</var>, run these steps:
Expand All @@ -3039,9 +3040,9 @@ boolean <var>credentials</var>, run these steps:
<var>environment</var>.

<li>
<p><a>Check CSP for preemptive operation</a> with <var>environment</var> and <var>url</var>. If
that returns <b>allowed</b>, <a>obtain a connection</a> with <var>key</var>, <var>url</var> and
<var>credentials</var>.
<p>Run <a>Should connection be allowed by Content Security Policy?</a> with
<var>environment</var> and <var>url</var>. If that returns <b>allowed</b>,
<a>obtain a connection</a> with <var>key</var>, <var>url</var>, and <var>credentials</var>.

<p class=note>This connection is obtained but not used directly. It will remain in the
<a>connection pool</a> for subsequent use.
Expand All @@ -3058,7 +3059,7 @@ boolean <var>credentials</var>, run these steps:
</ol>
</div>

<div algorithm="preemmptively-resolve-an-origin">
<div>
<p>To <dfn export>preemptively resolve an origin</dfn>, given an
<a>environment settings object</a> <var>environment</var> and a <a for=/>URL</a> <var>url</var>, run
these steps:
Expand All @@ -3067,8 +3068,8 @@ these steps:
<li><p>Let <var>key</var> be the result of <a for=/>determining the network partition key</a> given
<var>environment</var>.

<li><p><a>Check CSP for preemptive operation</a> with <var>environment</var> and <var>url</var>. If
that returns <b>blocked</b>, return.
<li>Run <p><a>Should connection be allowed by Content Security Policy?</a> with
<var>environment</var> and <var>url</var>. If that returns <b>blocked</b>, return.

<li><p>Let <var>proxies</var> be the result of calling <a>resolve proxies</a>.

Expand All @@ -3081,7 +3082,7 @@ these steps:
</div>

<div algorithm="check-preemptive-operation-csp">
<p>To <dfn>check CSP for preemptive operation</dfn>, given an
<p>To <dfn>Should connection be allowed by Content Security Policy?</dfn>, given an
<a>environment settings object</a> <var>environment</var>, and a <a for=/>URL</a> <var>url</var>,
run these steps:

Expand Down

0 comments on commit c005718

Please sign in to comment.