From b620471ff823e8e6507b077cf0785a530762f5e3 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren A The The WorkerGlobalScope
object has an associated url (null or a URL). It is initially
+ null.
+
self
attribute must return the
WorkerGlobalScope
object itself.location
attribute must
return the WorkerLocation
object created for the WorkerGlobalScope
- object when the worker was created. It represents the absolute URL of the script that
- was used to initialise the worker, after any redirects.WorkerGlobalScope
object's
+ url.
A SharedWorkerGlobalScope
object has an associated constructor url and name.
+
Shared workers receive message ports through connect
events on their SharedWorkerGlobalScope
object for each
connection.
The name
attribute must return
- the value it was assigned when the SharedWorkerGlobalScope
object was created by the
- "run a worker" algorithm. Its value represents the name that can be used to obtain a
- reference to the worker using the SharedWorker
constructor.
The name
attribute must
+ return the SharedWorkerGlobalScope
object's name. Its value represents the name that can
+ be used to obtain a reference to the worker using the SharedWorker
constructor.
The following are the event handlers (and their corresponding event handler event types) that must be supported, as event
@@ -95470,6 +95480,10 @@ interface WorkerGlobalScope : EventTarget {
event named error
at that object. Abort these
steps.
Set worker global scope's url to response's url.
In the newly created execution environment, create a JavaScript global
environment whose global object is worker global scope. If worker
global scope is a DedicatedWorkerGlobalScope
object, then this is a
@@ -95568,8 +95582,9 @@ interface WorkerGlobalScope : EventTarget {
When a user agent is to kill a worker it must run the following steps in parallel - with the worker's main loop (the "run a worker" processing model defined above):
+When a user agent is to kill a worker it must run the following steps in + parallel with the worker's main loop (the "run a worker" processing model + defined above):
When a user agent is to terminate a worker it must run the following steps in - parallel with the worker's main loop (the "run a worker" processing model defined - above):
+When a user agent is to terminate a worker it must run the following steps in + parallel with the worker's main loop (the "run a worker" processing model + defined above):
When the user agent is required to set up a worker environment settings object, given a - worker global scope and a URL script - address it must run the following steps:
+When the user agent is required to set up a worker environment settings object, + given a worker global scope, it must run the following steps:
Return script address.
+Return worker global scope's url.
Return script address.
+Return worker global scope's url.
Create a new DedicatedWorkerGlobalScope
object. Let worker global
scope be this new object.
Set up a worker environment settings object with worker global scope - and worker URL, and let settings object be the result.
Set up a worker environment settings object with worker global + scope, and let settings object be the result.
Create a new Worker
object, associated with worker global scope.
Let worker be this new object.
SharedWorker
interface[Constructor(DOMString scriptURL, optional DOMString name), Exposed=(Window,Worker)] +[Constructor(DOMString scriptURL, optional DOMString name = ""), Exposed=(Window,Worker)] interface SharedWorker : EventTarget { readonly attribute MessagePort port; }; @@ -95958,9 +95974,6 @@ interface SharedWorker : EventTarget {
Let scriptURL be the resulting absolute URL and parsed scriptURL be the resulting parsed URL.
Let name be the value of the second argument, or the empty string if - the second argument was omitted.
If the scheme component of parsed
@@ -96005,20 +96018,20 @@ interface SharedWorker : EventTarget {
If name is not the empty string and there exists a
Otherwise, if name is the empty string and there exists a
SharedWorkerGlobalScope
object whose closing flag is false, whose name
attribute is exactly equal to
- name, and that is the global object specified by an environment
- settings object that specifies as its origin the same origin
- as the origin of scriptURL, then let worker global scope be
+ data-x="dom-WorkerGlobalScope-closing">closing flag is false, whose name is exactly equal to name,
+ and that is the global object specified by an environment settings
+ object that specifies as its origin the same origin as the
+ origin of scriptURL, then let worker global scope be
that SharedWorkerGlobalScope
object.SharedWorkerGlobalScope
object whose closing flag is false, whose name
attribute is the empty string, and whose
- location
attribute represents an
- absolute URL that is exactly equal to scriptURL, then let worker
- global scope be that SharedWorkerGlobalScope
object.SharedWorkerGlobalScope
object.
If worker global scope's location
attribute represents an absolute
- URL that is not exactly equal to scriptURL, then throw a
- URLMismatchError
exception and abort all these steps.
If worker global scope's constructor url is not equal
+ to scriptURL, then throw a URLMismatchError
exception and abort all
+ these steps.
Associate worker with worker global scope.
Set up a worker environment settings object with worker global - scope and scriptURL, and let settings object be - the result.
Associate worker with worker global scope.
Set the name
attribute of
- worker global scope to name.
Set worker global scope's name to name and constructor url to + scriptURL.
Create a new A A The MessagePort
object whose owner is settings object. Let inside
@@ -96313,8 +96327,8 @@ interface WorkerNavigator {};
interface WorkerLocation { };
WorkerLocation implements URLUtilsReadOnly;
- WorkerLocation
object represents an absolute URL set at its
- creation.WorkerLocation
object represents the WorkerGlobalScope
object's
+ url.
WorkerLocation
interface supports the URLUtilsReadOnly
interface.