@@ -98734,7 +98734,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98734
98734
and <var>loadState</var> is undefined, then:</p>
98735
98735
98736
98736
<p class="note"><var>loadState</var> is undefined when the current fetching process has been
98737
- initiated by a dynamic <code>import()</code> call.</p>
98737
+ initiated by a dynamic <code>import()</code> call, either directly or when loading the
98738
+ transitive dependencies of the dynamically imported module.</p>
98738
98739
98739
98740
<ol>
98740
98741
<li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new
@@ -98773,12 +98774,21 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
98773
98774
script</span>.</p></li>
98774
98775
98775
98776
<li>
98776
- <p>If <var>loadState</var> is not undefined, set <var>fetch referrer</var> to
98777
- <var>referrer</var>'s <span data-x="concept-script-base-url">base URL</span>.</p>
98777
+ <p>If none of the following conditions is true</p>
98778
98778
98779
- <p class="XXX">We check <var>loadState</var> to not propagate the referrer when using dynamic
98780
- imports. <a href="https://github.com/whatwg/html/issues/3744">Issue #3744</a> looks into
98781
- aligning dynamic imports with static imports.</p>
98779
+ <ul class="brief">
98780
+ <li><var>referrer</var> is a <span>Script Record</span></li>
98781
+
98782
+ <li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
98783
+ <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
98784
+ </ul>
98785
+
98786
+ <p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
98787
+ data-x="concept-script-base-url">base URL</span>.</p>
98788
+
98789
+ <p class="XXX">We set <var>fetch referrer</var> conditionally to not propagate the referrer
98790
+ when using <code>import()</code>. <a href="https://github.com/whatwg/html/issues/3744">Issue
98791
+ #3744</a> looks into aligning dynamic imports with static imports.</p>
98782
98792
</li>
98783
98793
</ol>
98784
98794
0 commit comments