Skip to content

Commit

Permalink
Use module referrer policy for descendant fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino committed Jul 12, 2023
1 parent 1c634cf commit 19cb75e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -102628,8 +102628,15 @@ document.querySelector("button").addEventListener("click", bound);

<dt><dfn data-x="concept-script-fetch-options-referrer-policy">referrer policy</dfn></dt>

<dd><p>The <span data-x="concept-request-referrer-policy">referrer policy</span> used for the
initial fetch and for fetching any imported modules</p></dd>
<dd>
<p>The <span data-x="concept-request-referrer-policy">referrer policy</span> used for the
initial fetch and for fetching any imported modules</p>

<p class="note">This policy can mutate after a <span>module script</span>'s <span
data-x="concept-response">response</span> is received, to be the <span>referrer policy</span>
<span data-x="parse-referrer-policy-header">parsed</span> from the <span
data-x="concept-response">response</span>, and used when fetching any module dependencies.</p>
</dd>

<dt><dfn data-x="concept-script-fetch-options-render-blocking">render-blocking</dfn></dt>

Expand Down Expand Up @@ -103404,6 +103411,14 @@ document.querySelector("button").addEventListener("click", bound);

<li><p>Let <var>module script</var> be null.</p></li>

<li><p>Let <var>referrerPolicy</var> be the result of <span
data-x="parse-referrer-policy-header">parsing the `<code>Referrer-Policy</code>` header</span>
given <var>response</var>. <ref spec="REFERRERPOLICY"></p></li>

<li><p>If <var>referrerPolicy</var> is not the empty string, set <var>options</var>'s <span
data-x="concept-script-fetch-options-referrer-policy">referrer policy</span> to
<var>referrerPolicy</var>.</p></li>

<li><p>If <var>MIME type</var> is a <span>JavaScript MIME type</span> and <var>moduleType</var>
is "<code data-x="">javascript</code>", then set <var>module script</var> to the result of
<span>creating a JavaScript module script</span> given <var>source text</var>, <var>module map
Expand Down Expand Up @@ -105643,7 +105658,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<li><p>Set <var>settingsObject</var> to <var>referencingScript</var>'s <span>settings
object</span>.</p></li>

<li><p>Set <var>fetchOptions</var> to the <span>descendant script fetch options</span> for
<li><p>Set <var>fetchOptions</var> to the new <span>descendant script fetch options</span> for
<var>referencingScript</var>'s <span data-x="concept-script-script-fetch-options">fetch
options</span>.</p></li>

Expand Down

0 comments on commit 19cb75e

Please sign in to comment.