Re: [whatwg/fetch] Define preconnect and dns-prefetch with CSP (PR #1620)

@noamr commented on this pull request.



> +<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:
+
+<ol>
+ <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>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.
+
+  <p class=note>The user agent should attempt to initiate a preconnect and perform the full

s/should/can
Not sure how CI didn't catch this!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1620#discussion_r1175073759
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1620/review/1397631460@github.com>

Received on Monday, 24 April 2023 10:11:50 UTC