From 1a334de5d3a2019d51f9c87570919fb38a12bc9b Mon Sep 17 00:00:00 2001
From: Domenic Denicola The following feature is defined in Worklets: Set settings object's id to
- reservedEnvironment's id, settings
- object's target browsing
- context to reservedEnvironment's target browsing context, and
- settings object's active
- service worker to reservedEnvironment's reservedEnvironment's id, target browsing context to
+ reservedEnvironment's target browsing context, and active service worker to
+ reservedEnvironment's active service worker.
-
- WorkletGlobalScope
WorkletGlobalScope
's owner document
To obtain a worklet agent, given an environment settings object +
To obtain a worklet agent, given an environment settings object outside settings, return the result of obtaining a worker/worklet agent given outside settings, false, and false.
@@ -89204,7 +89193,7 @@ document.querySelector("button").addEventListener("click", bound);If global is a WorkletGlobalScope
, then:
If global's owner
+ If global's owner
document's relevant settings object is a secure context,
then return true. To fetch a module worker script graph
given a url, a fetch client settings object, a destination, a
- credentials mode, and a module map settings object, run these steps. The
- algorithm will asynchronously complete with either null (on failure) or a module
- script (on success).
To fetch a worklet script graph given a url, a fetch client settings + object, a destination, a credentials mode, a module map settings + object, and a module responses map, fetch a worklet/module worker script + graph given url, fetch client settings object, + destination, credentials mode, and module map settings object, + asynchronously completing with the asynchronous completion result of that algorithm. Use the + following custom steps to perform the fetch + given response:
Let options be a script fetch options whose cryptographic nonce is the empty string, integrity metadata is the empty string,
- parser metadata is "not-parser-inserted
", credentials mode is credentials
- mode, and referrer
- policy is the empty string.
Let requestURL be request's url.
Fetch a single module script given url, fetch client settings
- object, destination, options, module map settings object,
- "client
", and with the top-level module fetch flag set. If the
- caller of this algorithm specified custom perform
- the fetch steps, pass those along as well. Wait until the algorithm asynchronously
- completes with result.
If moduleResponsesMap[requestURL] is "fetching
", wait in parallel until that entry's value changes, then
+ queue a task on the networking task source to proceed with running the
+ following steps.
If result is null, asynchronously complete this algorithm with null, and - return.
If moduleResponsesMap[requestURL] exists, then asynchronously complete the perform the fetch steps with + moduleResponsesMap[requestURL].
Let visited set be « url ».
Set moduleResponsesMap[requestURL] to
+ "fetching
".
Fetch the - descendants of and link result given fetch client settings - object, destination, and visited set. When this asynchronously - completes with final result, asynchronously complete this algorithm with final - result.
Fetch request. To process + response for the response response:
+ +Set moduleResponsesMap[requestURL] to + response.
Asynchronously complete the perform the + fetch steps with response.
This diagram illustrates how these algorithms relate to the ones above, as well as to each other:
-