Skip to content

Commit 8708085

Browse files
nicolo-ribaudodomenic
authored andcommitted
Propagate the fetch settings object when loading module graphs
Fixes whatwg#9513.
1 parent b24895d commit 8708085

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

source

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103352,7 +103352,8 @@ document.querySelector("button").addEventListener("click", bound);
103352103352
</li>
103353103353

103354103354
<li><p>Let <var>state</var> be <span>Record</span> { [[ParseError]]: null, [[Destination]]:
103355-
<var>destination</var>, [[PerformFetch]]: null }.</p></li>
103355+
<var>destination</var>, [[PerformFetch]]: null, [[SettingsObject]]: <var>fetch client settings
103356+
object</var> }.</p></li>
103356103357

103357103358
<li><p>If <var>performFetch</var> was given, set <var>state</var>.[[PerformFetch]] to
103358103359
<var>performFetch</var>.</p></li>
@@ -105799,15 +105800,23 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
105799105800

105800105801
<li><p>Let <var>destination</var> be <code data-x="">"script"</code>.</p></li>
105801105802

105802-
<li><p>If <var>loadState</var> is not undefined, then set <var>destination</var> to
105803-
<var>loadState</var>.[[Destination]].</p></li>
105803+
<li>
105804+
<p>If <var>loadState</var> is not undefined, then:</p>
105805+
105806+
<ol>
105807+
<li><p>Set <var>destination</var> to <var>loadState</var>.[[Destination]].</p></li>
105808+
105809+
<li><p>Set <var>settingsObject</var> <var>loadState</var>.[[SettingsObject]].</p></li>
105810+
</ol>
105811+
</li>
105804105812

105805105813
<li>
105806-
<p><span>Fetch a single imported module script</span> given <var>url</var>, <var>settings
105807-
object</var>, <var>destination</var>, <var>fetchOptions</var>, <var>fetchReferrer</var>,
105808-
<var>moduleRequest</var>, and <var>onSingleFetchComplete</var> as defined below. If
105809-
<var>loadState</var> is not undefined and <var>loadState</var>.[[PerformFetch]] is not null,
105810-
pass <var>loadState</var>.[[PerformFetch]] along as well.</p>
105814+
<p><span>Fetch a single imported module script</span> given <var>url</var>,
105815+
<var>settingsObject</var>, <var>destination</var>, <var>fetchOptions</var>,
105816+
<var>fetchReferrer</var>, <var>moduleRequest</var>, and <var>onSingleFetchComplete</var> as
105817+
defined below. If <var>loadState</var> is not undefined and
105818+
<var>loadState</var>.[[PerformFetch]] is not null, pass <var>loadState</var>.[[PerformFetch]]
105819+
along as well.</p>
105811105820

105812105821
<p><var>onSingleFetchComplete</var> given <var>moduleScript</var> is the following
105813105822
algorithm:</p>

0 commit comments

Comments
 (0)