Re: [whatwg/fetch] Add policy container to request (#1231)

@annevk commented on this pull request.



> @@ -3659,6 +3667,19 @@ steps:
  <a for=request>current URL</a> is not <a lt="is local">local</a>, then set <var>response</var> to a
  <a>network error</a>.
 
+ <li>
+  <p>If <var>request</var>'s <a for=request>policy container</a> is "<code>client</code>", then:
+
+  <ol>
+   <li><p>If <var>request</var>'s <a for=request>client</a> is non-null, then set
+   <var>request</var>'s <a for=request>policy container</a> to a <a
+   lt="clone a policy container">clone</a> of <var>request</var>'s <a for=request>client</a>'s <a
+   for="environment settings object">policy container</a>. [[!HTML]]
+
+   <li><p>Else, set <var>request</var>'s <a for=request>policy container</a> to a new <a

Otherwise*

> @@ -1519,6 +1519,14 @@ user-agent-defined object). Unless otherwise stated it is null.
 <a lt=fetch for=/>fetching</a>. It provides a convenient way for standards to not have to set
 <a for=/>request</a>'s <a for=request>origin</a>.
 
+<p>A <a for=/>request</a> has an associated <dfn export for=request
+id=concept-request-policy-container>policy container</dfn>, which is "<code>client</code>" or a <a
+for=/>policy container</a>. Unless stated otherwise it is "<code>client</code>".
+
+<p class="note no-backref">"<code>client</code>" is changed to a <a for=/>policy container</a>

This can be `class=note`. I should do a cleanup PR to remove all the no-backref stuff.

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

Received on Thursday, 6 May 2021 09:26:50 UTC