diff --git a/source b/source index 042d5e686d8..2dd281067d8 100644 --- a/source +++ b/source @@ -87022,10 +87022,9 @@ interface NavigatorOnLine {
To fetch a classic worker script given a url, a referrer, a - settings object, and a destination, run these steps. The algorithm will - asynchronously complete with either null (on failure) or a new classic script (on - success).
+To fetch a classic worker script given a url, a settings + object, and a destination, run these steps. The algorithm will asynchronously + complete with either null (on failure) or a new classic script (on success).
Let request be a new request whose
@@ -87033,7 +87032,6 @@ interface NavigatorOnLine {
data-x="concept-request-client">client is settings object, type is " When a user agent is to run a worker for a script with
script
", destination is destination, referrer is referrer, mode is "same-origin
", credentials mode is "same-origin
", parser
@@ -96681,10 +96679,9 @@ interface WorkerGlobalScope : EventTarget {
Worker
or SharedWorker
object worker, URL
- url, URL referrer, MessagePort
outside
- port, list of relevant Document
objects to add docs,
- possible WorkerGlobalScope
parent worker global scope, and a
- WorkerOptions
dictionary options, it must run the following steps:MessagePort
outside port, and a WorkerOptions
dictionary
+ options, it must run the following steps:
Let is shared be true if worker is a SharedWorker
object, and false otherwise.
Let docs be the list of relevant Document
objects to
+ add given outside settings.
Let parent worker global scope be null.
+ +If outside settings's global
+ object is a WorkerGlobalScope
object (i.e. we are creating a nested worker),
+ set parent worker global scope to outside settings's global object.
Call the JavaScript InitializeHostDefinedRealm() abstract @@ -96729,14 +96736,14 @@ interface WorkerGlobalScope : EventTarget {
classic
"module
"credentials
member of options, the empty string (as no
cryptographic nonce is present for workers), "not
- parser-inserted
", destination, and settings object.In both cases, to process the @@ -97224,31 +97231,23 @@ enum WorkerType { "classic", "module" }; data-x="blob protocol">blob: URLs.
Let outside settings be the incumbent settings object.
+Let worker be a new Worker
object.
Create a new MessagePort
object whose owner is the incumbent settings object. Let this
- be the outside port.
Associate the outside port with worker.
Let docs be the list of relevant Document
objects to
- add given the incumbent settings object.
Let parent worker global scope be null.
If the global object specified by the
- incumbent settings object is a WorkerGlobalScope
object (i.e. we are
- creating a nested worker), set parent worker global scope to the
- WorkerGlobalScope
object that is the global object specified by the incumbent
- settings object.
Return worker, and run the following step in parallel.
Run a worker given worker, worker URL, the - incumbent settings object's creation URL, outside port, - docs, parent worker global scope, and options.
Run a worker given worker, worker URL, outside + settings, outside port, and options.
The user agent may throw a SecurityError
exception and abort these steps if
the request violates a policy decision (e.g. if the user agent is configured to not allow the
page to start shared workers).
Let docs be the list of relevant Document
objects to
- add given the incumbent settings object.
Let outside settings be the incumbent settings object.
Let worker be a new SharedWorker
object.
Create a new MessagePort
object whose owner is the incumbent settings object. Let
- this be the outside port.
Assign outside port to the port
attribute of worker.
SharedWorkerGlobalScope
object.
If worker global scope is not null, but the user agent has been - configured to disallow communication between the worker represented by the worker global scope and the scripts whose - settings objects are the incumbent settings - object, then set worker global scope to null.
+ configured to disallow communication between the worker represented by the worker global + scope and the scripts whose settings object is outside settings, then set worker global + scope to null.For example, a user agent could have a development mode that isolates a particular top-level browsing context from all other pages, and scripts in that development mode could be blocked from connecting to shared workers running in the normal browser mode.
-If worker global scope is not null, then run these steps:
Associate worker with worker global - scope.
Associate worker with worker global scope.
Let settings object be the relevant settings object for worker global scope.
Entangle outside port - and inside port.
Entangle outside port and inside port.
Create a trusted event that uses the
MessageEvent
interface, with the name SharedWorker : EventTarget {
source, to dispatch the event at
worker global scope.
Add to worker global
- scope's list of the worker's Document
s the
- Document
objects in docs.
If the global object specified by
- the incumbent settings object is a WorkerGlobalScope
object, add
- worker global scope to the list of the worker's workers of the
- WorkerGlobalScope
object that is the global object specified by the
- incumbent settings object.
Add to worker global
+ scope's list of the worker's Document
s the
+ list of relevant Document
objects to add given outside
+ settings.
If outside settings's global
+ object is a WorkerGlobalScope
object, add worker global scope
+ to the list of the worker's workers of outside settings's global object.
Return worker and abort all these steps.
Let parent worker global scope be null.
If the global object specified by
- the incumbent settings object is a WorkerGlobalScope
object (i.e. we
- are creating a nested worker), set parent worker global scope to the
- WorkerGlobalScope
object that is the global object specified by the incumbent
- settings object.
Return worker and perform the remaining steps in parallel.
Run a worker given worker, urlRecord, the - incumbent settings object's creation URL, outside port, - docs, parent worker global scope, and options.
Run a worker given worker, urlRecord, outside + settings, outside port, and options.