Skip to content

Commit f64322a

Browse files
committed
Use boolean for algo
1 parent c267d4e commit f64322a

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

fetch.bs

+13-12
Original file line numberDiff line numberDiff line change
@@ -2850,7 +2850,7 @@ steps:
28502850
<a>connection</a>.
28512851
</ol>
28522852

2853-
<li><p>Let <var>proxies</var> of calling <a>resolve proxies</a> given <var>url</var>.
2853+
<li><p>Let <var>proxies</var> be the result of calling <a>resolve proxies</a> given <var>url</var>.
28542854

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

@@ -3044,8 +3044,8 @@ boolean <var>credentials</var>, run these steps:
30443044
<var>environment</var>.
30453045

30463046
<li>
3047-
<p>Run <a>Should connection be allowed by Content Security Policy?</a> with
3048-
<var>environment</var> and <var>url</var>. If that returns <b>allowed</b>,
3047+
<p>Run <a>determine if Content Security Policy allows connection</a> with
3048+
<var>environment</var> and <var>url</var>. If that returns true,
30493049
<a>obtain a connection</a> with <var>key</var>, <var>url</var>, and <var>credentials</var>.
30503050

30513051
<p class=note>This connection is obtained but not used directly. It will remain in the
@@ -3063,7 +3063,7 @@ boolean <var>credentials</var>, run these steps:
30633063
</ol>
30643064
</div>
30653065

3066-
<div>
3066+
<div algorithm>
30673067
<p>To <dfn export>preemptively resolve an origin</dfn>, given an
30683068
<a>environment settings object</a> <var>environment</var> and a <a for=/>URL</a> <var>url</var>, run
30693069
these steps:
@@ -3072,8 +3072,8 @@ these steps:
30723072
<li><p>Let <var>key</var> be the result of <a for=/>determining the network partition key</a> given
30733073
<var>environment</var>.
30743074

3075-
<li>Run <p><a>Should connection be allowed by Content Security Policy?</a> with
3076-
<var>environment</var> and <var>url</var>. If that returns <b>blocked</b>, return.
3075+
<li>Run <p><a>determine if Content Security Policy allows connection</a> with
3076+
<var>environment</var> and <var>url</var>. If that returns false, return.
30773077

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

@@ -3085,18 +3085,19 @@ these steps:
30853085
</ol>
30863086
</div>
30873087

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

30933092
<ol>
30943093
<li><p>Let <var>request</var> be a <a for=/>request</a> whose <a for=request>URL</a> is
30953094
<var>url</var>, <a for=request>initiator</a> is "<code>prefetch</code>", and whose
30963095
<a for=request>client</a> is <var>environment</var>.
30973096

3098-
<li><p>Return the result of running <a>should request be blocked by Content Security Policy?</a>
3099-
given <var>request</var>.
3097+
<li><p>Let <var>result</var> be the result of running
3098+
<a>should request be blocked by Content Security Policy?</a> given <var>request</var>.
3099+
3100+
<li><p>Return true if <var>result</var> is <b>allowed</b>, otherwise false.
31003101
</ol>
31013102
</div>
31023103

0 commit comments

Comments
 (0)