@@ -95897,7 +95897,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
95897
95897
and <var>loadState</var> is undefined, then:</p>
95898
95898
95899
95899
<p class="note"><var>loadState</var> is undefined when the current fetching process has been
95900
- initiated by a dynamic <code>import()</code> call.</p>
95900
+ initiated by a dynamic <code>import()</code> call, either directly or when loading the
95901
+ transitive dependencies of the dynamically imported module.</p>
95901
95902
95902
95903
<ol>
95903
95904
<li><p>Let <var>completion</var> be the <span>Completion Record</span> { [[Type]]: throw, [[Value]]: a new
@@ -95935,12 +95936,21 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
95935
95936
<span>classic script</span> or a <span>JavaScript module script</span>.</p></li>
95936
95937
95937
95938
<li>
95938
- <p>If <var>loadState</var> is not undefined, set <var>fetch referrer</var> to
95939
- <var>referrer</var>'s <span data-x="concept-script-base-url">base URL</span>.</p>
95939
+ <p>If none of the following conditions is true</p>
95940
95940
95941
- <p class="XXX">We check <var>loadState</var> to not propagate the referrer when using dynamic
95942
- imports. <a href="https://github.com/whatwg/html/issues/3744">Issue #3744</a> looks into
95943
- aligning dynamic imports with static imports.</p>
95941
+ <ul class="brief">
95942
+ <li><var>referrer</var> is a <span>Script Record</span></li>
95943
+
95944
+ <li><var>referrer</var> is a <span data-x="Cyclic Module Record">Module Record</span> and
95945
+ <var>referrer</var>.[[Status]] is one of evaluating, evaluating-async or evaluated</li>
95946
+ </ul>
95947
+
95948
+ <p>then set <var>fetch referrer</var> to <var>referrer</var>'s <span
95949
+ data-x="concept-script-base-url">base URL</span>.</p>
95950
+
95951
+ <p class="XXX">We set <var>fetch referrer</var> conditionally to not propagate the referrer
95952
+ when using <code>import()</code>. <a href="https://github.com/whatwg/html/issues/3744">Issue
95953
+ #3744</a> looks into aligning dynamic imports with static imports.</p>
95944
95954
</li>
95945
95955
</ol>
95946
95956
0 commit comments