@@ -98639,7 +98639,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98639
98639
and <var>loadState</var> is undefined, then:</p>
98640
98640
98641
98641
<p class="note"><var>loadState</var> is undefined when the current fetching process has been
98642
- initiated by a dynamic <code>import()</code> call.</p>
98642
+ initiated by a dynamic <code>import()</code> call, either directly or when loading the
98643
+ transitive dependencies of the dynamically imported module.</p>
98643
98644
98644
98645
<ol>
98645
98646
<li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new
@@ -98678,12 +98679,21 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98678
98679
script</span>.</p></li>
98679
98680
98680
98681
<li>
98681
- <p>If <var>loadState</var> is not undefined, set <var>fetch referrer</var> to
98682
- <var>referrer</var>'s <span data-x="concept-script-base-url">base URL</span>.</p>
98682
+ <p>If none of the following conditions is true</p>
98683
98683
98684
- <p class="XXX">We check <var>loadState</var> to not propagate the referrer when using dynamic
98685
- imports. <a href="https://github.com/whatwg/html/issues/3744">Issue #3744</a> looks into
98686
- aligning dynamic imports with static imports.</p>
98684
+ <ul class="brief">
98685
+ <li><var>referrer</var> is a <span>Script Record</span></li>
98686
+
98687
+ <li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
98688
+ <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
98689
+ </ul>
98690
+
98691
+ <p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
98692
+ data-x="concept-script-base-url">base URL</span>.</p>
98693
+
98694
+ <p class="XXX">We set <var>fetch referrer</var> conditionally to not propagate the referrer
98695
+ when using <code>import()</code>. <a href="https://github.com/whatwg/html/issues/3744">Issue
98696
+ #3744</a> looks into aligning dynamic imports with static imports.</p>
98687
98697
</li>
98688
98698
</ol>
98689
98699
0 commit comments