Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate fetch referrer in dynamic imports #9407

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -101453,23 +101453,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<var>referencingScript</var> is a <span>classic script</span> or a <span>JavaScript module
script</span>.</p></li>

<li>
<p>If neither of the following conditions are true:</p>

<ul class="brief">
<li><var>referrer</var> is a <span>Script Record</span>; or</li>

<li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
<var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated,</li>
</ul>

<p>then set <var>fetchReferrer</var> to <var>referrer</var>'s <span
data-x="concept-script-base-url">base URL</span>.</p>

<p class="XXX">We set <var>fetchReferrer</var> conditionally to not propagate the referrer
when using <code>import()</code>. <a href="https://github.com/whatwg/html/issues/3744">Issue
#3744</a> looks into aligning dynamic imports with static imports.</p>
</li>
<li><p>Set <var>fetchReferrer</var> to <var>referrer</var>'s <span
data-x="concept-script-base-url">base URL</span>.</p></li>
</ol>

<div class="example">
Expand Down