Skip to content

Commit

Permalink
Propagate origin and URL list through the request constructor. (Fixes w…
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderview committed Nov 22, 2021
1 parent 5dc54a7 commit b449bd8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Binary file added .fetch.bs.swp
Binary file not shown.
14 changes: 13 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6894,7 +6894,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 @@ -6925,6 +6925,9 @@ 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>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 @@ -6939,10 +6942,19 @@ 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>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 b449bd8

Please sign in to comment.