Auto merge of #9688 - KiChjang:worker-terminate, r=jdm

Implement Worker#terminate() (fixes #4427).

Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.

Rebased #6652, with some comments addressed.
Fixes #4427.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9688)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-08 05:01:18 +05:30
commit c0aa049b0a
13 changed files with 216 additions and 47 deletions

View file

@ -7458,9 +7458,6 @@
[SharedWorkerGlobalScope interface: attribute onconnect]
expected: FAIL
[Worker interface: operation terminate()]
expected: FAIL
[SharedWorker interface: existence and properties of interface object]
expected: FAIL

View file

@ -1,3 +0,0 @@
[Worker_terminate_event_queue.htm]
type: testharness
disabled: too much output

View file

@ -1,5 +0,0 @@
[terminate.html]
type: testharness
[terminate()]
expected: FAIL

View file

@ -1,9 +0,0 @@
[nested_worker.worker]
type: testharness
expected: TIMEOUT
[Nested worker]
expected: FAIL
[Checking contents for text file]
expected: FAIL