close() operation should not be exposed inside a ServiceWorkerGlobalScope
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2018 23:00:56 +0000 (23:00 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2018 23:00:56 +0000 (23:00 +0000)
commit9b48ac5f8473872088fb8171a0fc5444fea6695a
treea2b2ce06dda5ef207f5217e76fdc2e8384113a77
parente416316b97181b473d865bc61e3778bf7fce6b37
close() operation should not be exposed inside a ServiceWorkerGlobalScope
https://bugs.webkit.org/show_bug.cgi?id=182057

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

Rebaseline WPT tests now that more checks are passing.

* web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https-expected.txt:
* web-platform-tests/workers/interfaces.worker-expected.txt:

Source/WebCore:

Move close() from WorkerGlobalScope to DedicatedWorkerGlobalScope as per:
- https://html.spec.whatwg.org/multipage/workers.html#dedicatedworkerglobalscope

This change to the specification was made to avoid exposing this deprecated
features to service workers (which are new).

No new tests, rebaselined existing test.

* workers/DedicatedWorkerGlobalScope.idl:
* workers/WorkerGlobalScope.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/workers/WorkerGlobalScope-properties-prototype-expected.txt
LayoutTests/fast/workers/WorkerGlobalScope-properties-prototype.html
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https-expected.txt
LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/workers/DedicatedWorkerGlobalScope.idl
Source/WebCore/workers/WorkerGlobalScope.idl