From 5479e07a6f6e01062b85b5fe6799752b0370336c Mon Sep 17 00:00:00 2001
From: Mike West Let CORS setting be the current state of the element's If the Otherwise, let cryptographic nonce be the empty string. Let settings be the element's node document's
Fetch a classic script given url, CORS setting,
- settings, and encoding.crossorigin
content attribute.script
element has a nonce
+ attribute, then let crytographic nonce be that attribute's value.Window
object's environment settings object.classic
"
module
"Fetch a module script tree given url, credentials
- mode, "script
", and settings.
script
", and
+ settings.
@@ -84940,6 +84951,15 @@ interface NavigatorOnLine {
+ A cryptographic nonce used to fetch + imported modules.
+ +To fetch a classic script for a script
element element,
- given a url, a CORS setting, a settings object, and a
- character encoding, run these steps. The algorithm will asynchronously complete with
- either null (on failure) or a new classic script (on success).
Let request be the result of client to
settings object, its type to "script
", and its destination
- to "script
".
script
", and its cryptographic nonce metadata to
+ cryptographic nonce.
If the caller specified custom steps to set up the request, perform them on request.
To fetch a module script tree given a url, a credentials mode, - a destination, a settings object, and an optional ancestor list, - run these steps. The algorithm will asynchronously complete with either null (on failure) or a - module script (on success).
+ a cryptographic nonce, a destination, a settings object, and an + optional ancestor list, run these steps. The algorithm will asynchronously complete with + either null (on failure) or a module script (on success).If ancestor list is not given, let it be an empty list.
Fetch a single module script given url, credentials - mode, destination, and settings object. If the caller of this - algorithm specified custom set up the - request or validate the response - steps, pass those along while fetching a single - module script.
+ mode, cryptographic nonce, destination, and settings + object. If the caller of this algorithm specified custom set up the request or validate the response steps, pass those along + while fetching a single module script.Return from this algorithm and run the following steps when fetching a single module script asynchronously completes with @@ -85322,8 +85345,10 @@ interface NavigatorOnLine {
For each url in urls, fetch a module script tree given url, module script's credentials mode, destination, - module script's settings object, and ancestor list.
+ data-x="concept-module-script-credentials-mode">credentials mode, module + script's cryptographic nonce, + destination, module script's settings object, and + ancestor list.It is intentional that no custom set up the request or NavigatorOnLine {
To fetch a single module script, given a url, a credentials - mode, a destination, and a settings object, run these steps. The - algorithm will asynchronously complete with either null (on failure) or a module - script (on success).
+ mode, a cryptographic nonce, a destination, and a settings + object, run these steps. The algorithm will asynchronously complete with either null (on + failure) or a module script (on success).Let module map be settings's module map.
script
", mode is "cors
", credentials mode is credentials
- mode, and client is
+ mode, cryptographic nonce metadata is
+ cryptographic nonce, and client is
settings object.
If the caller specified custom steps to set
@@ -85414,7 +85440,8 @@ interface NavigatorOnLine {
Let module script be the result of creating a module script given
source text, settings object, response's url, and credentials mode.
Set the value of the entry in module map whose key is url to @@ -85458,8 +85485,8 @@ interface NavigatorOnLine {
To create a module script, given some script - source, an environment settings object, a script base URL, and a credentials - mode:
+ source, an environment settings object, a script base URL, a credentials mode, and + a cryptographic nonce:Set script's credentials mode to the credentials mode provided.
Set script's cryptographic + nonce to the cryptographic nonce provided.
Return script.
module
"credentials
member of options, destination, and
+ data-x="">credentials member of options, the empty string (as no
+ cryptographic nonce is present for workers), destination, and
settings object.