Skip to content

Commit

Permalink
Propagate origin, tainted origin flag, and URL list through the reque…
Browse files Browse the repository at this point in the history
…st constructor. (Fixes whatwg#1321, whatwg#1335)
  • Loading branch information
wanderview committed Nov 11, 2021
1 parent 3ecab20 commit 400f558
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6882,7 +6882,7 @@ constructor steps are:
<dd><var>request</var>'s <a for=request>priority</a>.

<dt><a for=request>origin</a>
<dd>"<code>client</code>".
<dd><var>request</var>'s <a for=request>origin</a>.

<dt><a for=request>referrer</a>
<dd><var>request</var>'s <a for=request>referrer</a>.
Expand Down Expand Up @@ -6913,6 +6913,12 @@ constructor steps are:

<dt><a for=request>history-navigation flag</a>
<dd><var>request</var>'s <a for=request>history-navigation flag</a>.

<dt><a for=request>tainted origin flag</a>
<dd><var>request</var>'s <a for=request>tainted origin flag</a>.

<dt><a for=request>URL list</a>
<dd>A <a for=list>clone</a> of <var>request</var>'s <a for=request>URL list</a>.
</dl>

<li>
Expand All @@ -6927,10 +6933,21 @@ constructor steps are:

<li><p>Unset <var>request</var>'s <a for=request>history-navigation flag</a>.

<li><p>Set <var>request</var>'s <a for=request>origin</a> to
"<code>client</code>"

<li><p>Set <var>request</var>'s <a for=request>referrer</a> to
"<code>client</code>"

<li><p>Set <var>request</var>'s <a for=request>referrer policy</a> to the empty string.

<li><p>Unset <var>request</var>'s <a for=request>tainted origin flag</a>.

<li><p>Set <var>request</var>'s <a for=request>URL list</a> to an empty
<a for=/>list</a>.

<li><p><a for=list>Append</a> <var>request</var>'s <a for=request>URL</a> to
<var>request</var>'s <a for=request>URL list</a>.
</ol>

<p class=note>This is done to ensure that when a service worker "redirects" a request, e.g., from
Expand Down

0 comments on commit 400f558

Please sign in to comment.