mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Implement Worker#terminate() (fixes #4427).
Adds support for terminating DOM workers. A closing flag was added to WorkerGlobalScope per the spec.
This commit is contained in:
parent
dc3f199043
commit
229b176321
13 changed files with 216 additions and 47 deletions
|
@ -12,7 +12,7 @@ interface AbstractWorker {
|
|||
// https://html.spec.whatwg.org/multipage/#worker
|
||||
[Constructor(DOMString scriptURL)/*, Exposed=Window,Worker*/]
|
||||
interface Worker : EventTarget {
|
||||
//void terminate();
|
||||
void terminate();
|
||||
|
||||
[Throws]
|
||||
void postMessage(any message/*, optional sequence<Transferable> transfer*/);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue