From 535e285a3a7e85c7bcb181d57362c1d605c4b120 Mon Sep 17 00:00:00 2001
From: Jungkee Song When a script invokes the Discard any tasks that have been added to the
- Set the worker's importScripts
(urls...)close
()WorkerGlobalScope
object, this is not problematic as it cannot be observed from
script.
-
-
- close()
- method on a WorkerGlobalScope
object, the user agent must run the following steps
- (atomically):
-
-
-
WorkerGlobalScope
object's event loop's task
- queues.WorkerGlobalScope
object's closing flag to true. (This prevents any further
- tasks from being queued.)
@@ -96403,6 +96380,9 @@ interface WorkerGlobalScope : EventTarget {
[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
/*sealed*/ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
void postMessage(any message, optional sequence<object> transfer = []);
+
+ void close();
+
attribute EventHandler onmessage;
};
@@ -96419,6 +96399,34 @@ interface WorkerGlobalScope : EventTarget {
immediately invoked the method of the same name
on the port, with the same arguments, and returned the same return value.
close
()When a script invokes the close()
method on a DedicatedWorkerGlobalScope
object, the user
+ agent must run the following steps (atomically):
Discard any tasks that have been added to the
+ DedicatedWorkerGlobalScope
object's event loop's task queues.
Set the worker's DedicatedWorkerGlobalScope
object's closing flag to true. (This prevents any further
+ tasks from being queued.)
The following are the event handlers (and their corresponding event handler event types) that must be supported, as event
handler IDL attributes, by objects implementing the DedicatedWorkerGlobalScope
@@ -96442,6 +96450,9 @@ interface WorkerGlobalScope : EventTarget {
/*sealed*/ interface SharedWorkerGlobalScope : WorkerGlobalScope {
readonly attribute DOMString name;
readonly attribute ApplicationCache applicationCache; // deprecated
+
+ void close();
+
attribute EventHandler onconnect;
};
@@ -96459,6 +96470,10 @@ interface WorkerGlobalScope : EventTarget {
name
close
()SharedWorker
constructor.
+ When a script invokes the close()
method on a SharedWorkerGlobalScope
object, the user
+ agent must run the following steps (atomically):
Discard any tasks that have been added to the
+ SharedWorkerGlobalScope
object's event loop's task queues.
Set the worker's SharedWorkerGlobalScope
object's closing flag to true. (This prevents any further
+ tasks from being queued.)
The following are the event handlers (and their corresponding event handler event types) that must be supported, as event
handler IDL attributes, by objects implementing the When a script invokes the SharedWorkerGlobalScope
From fd020a2c12fddaef69a297fa80b1ecc4237b7f26 Mon Sep 17 00:00:00 2001
From: Jungkee Song close()
method on a DedicatedWorkerGlobalScope
object, the user
- agent must run the following steps (atomically):DedicatedWorkerGlobalScope
+ object.
To close a worker, given a worker global scope, run these steps + (atomically):
Discard any tasks that have been added to the
- DedicatedWorkerGlobalScope
object's event loop's task queues.
Discard any tasks that have been added to worker + global scope's event loop's task queues.
-Set the worker's DedicatedWorkerGlobalScope
object's closing flag to true. (This prevents any further
- tasks from being queued.)
Set worker global scope's closing flag to true. (This prevents any further tasks from being + queued.)
When a script invokes the close()
method on a SharedWorkerGlobalScope
object, the user
- agent must run the following steps (atomically):
Discard any tasks that have been added to the
- SharedWorkerGlobalScope
object's event loop's task queues.
Set the worker's SharedWorkerGlobalScope
object's closing flag to true. (This prevents any further
- tasks from being queued.)
SharedWorkerGlobalScope
object.
From e798194bae77d30e42c0c2c933947bcf1d10c55c Mon Sep 17 00:00:00 2001
From: Jungkee Song When a script invokes the close()
method on a DedicatedWorkerGlobalScope
object, the user
- agent must close a worker with the DedicatedWorkerGlobalScope
+
The close()
method, when
+ invoked, must close a worker with this DedicatedWorkerGlobalScope
object.
To close a worker, given a worker global scope, run these steps
@@ -96486,9 +96485,9 @@ interface WorkerGlobalScope : EventTarget {
data-x="concept-SharedWorkerGlobalScope-name">name. Its value represents the name that can
be used to obtain a reference to the worker using the SharedWorker
constructor.
When a script invokes the close()
method on a SharedWorkerGlobalScope
object, the user
- agent must close a worker with the SharedWorkerGlobalScope
object.
The close()
method, when
+ invoked, must close a worker with this SharedWorkerGlobalScope
+ object.
All messages received by that port must immediately be retargeted at the
DedicatedWorkerGlobalScope
object.
The postMessage()
- method on DedicatedWorkerGlobalScope
objects must act as if, when invoked, it
- immediately invoked the method of the same name
- on the port, with the same arguments, and returned the same return value.
postMessage
(message [, transfer ])Worker
object associated with
+ the worker that is represented by this dedicatedWorkerGlobal object.
+ transfer can be passed as a list of objects that are to be transfered rather than
+ cloned.close
()The postMessage()
+ method on DedicatedWorkerGlobalScope
objects must act as if, when invoked, it
+ immediately invoked the method of the same name
+ on the port, with the same arguments, and returned the same return value.
The close()
method, when
- invoked, must close a worker with this DedicatedWorkerGlobalScope
- object.
To close a worker, given a worker global scope, run these steps +
To close a worker, given a workerGlobal, run these steps (atomically):
Discard any tasks that have been added to worker global scope's event loop's task queues.
-Set worker global scope's closing flag to true. (This prevents any further tasks from being - queued.)
Set workerGlobal's closing + flag to true. (This prevents any further tasks from being queued.)
The close()
method, when
+ invoked, must close a worker with this DedicatedWorkerGlobalScope
+ object.
postMessage
(message [, transfer ])Worker
object associated with
- the worker that is represented by this dedicatedWorkerGlobal object.
- transfer can be passed as a list of objects that are to be transfered rather than
- cloned.close
()To close a worker, given a workerGlobal, run these steps - (atomically):
+To close a worker, given a workerGlobal, run these steps:
Discard any tasks that have been added to worker - global scope's event loop's task queues.
+Discard any tasks that have been added to + workerGlobal's event loop's task + queues.
Set workerGlobal's closing flag to true. (This prevents any further tasks from being queued.)
DedicatedWorkerGlobalScope
object.
postMessage
(message [, transfer ])postMessage
(message [,
+ transfer ])Worker
object associated with
dedicatedWorkerGlobal. transfer can be passed as a list of objects that are
to be transfered rather than cloned.close
()close
()To close a worker, given a workerGlobal, run these steps:
Discard any tasks that have been added to workerGlobal's event loop's task queues.
Set workerGlobal's closing flag to true. (This prevents any further tasks from being queued.)
The close()
method, when
@@ -96478,8 +96477,8 @@ interface WorkerGlobalScope : EventTarget {
close
()close
()