From 78759fb3280bdd81d688cdc63b426efe09087701 Mon Sep 17 00:00:00 2001 From: Jungkee Song Date: Thu, 28 Apr 2016 00:42:25 +0900 Subject: [PATCH] Remove ServiceWorkerGlobalScope.close() Remove ServiceWorkerGlobalScope.close() by moving worker's close() to dedicated worker and shared worker in HTML: https://github.com/whatwg/html/commit/4081f129ac4667fccd365b4a68de4aff0211b2f1 Fixes #865 --- spec/service_worker/index.bs | 4 - spec/service_worker/index.html | 1002 +++++++++++++++--------------- spec/service_worker_1/index.bs | 4 - spec/service_worker_1/index.html | 942 ++++++++++++++-------------- 4 files changed, 973 insertions(+), 979 deletions(-) diff --git a/spec/service_worker/index.bs b/spec/service_worker/index.bs index 464b1be6..a90a7239 100644 --- a/spec/service_worker/index.bs +++ b/spec/service_worker/index.bs @@ -1066,8 +1066,6 @@ spec: webidl; urlPrefix: https://heycam.github.io/webidl/ // event attribute EventHandler onmessage; // event.source of the message events is Client object - - // close() method inherited from WorkerGlobalScope should not be accessible. }; @@ -1075,8 +1073,6 @@ spec: webidl; urlPrefix: https://heycam.github.io/webidl/

{{ServiceWorkerGlobalScope}} object provides generic, event-driven, time-limited script execution contexts that run at an origin. Once successfully registered, a service worker is started, kept alive and killed by their relationship to events, not service worker clients. Any type of synchronous requests must not be initiated inside of a service worker.

-

The {{WorkerGlobalScope/close()}} method inherited from {{WorkerGlobalScope}}, when called on the context object, should throw an "{{InvalidAccessError}}" exception.

-

{{ServiceWorkerGlobalScope/clients}}

diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 9e4999da..99da4269 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -11,7 +11,7 @@ * * Indices * - .toc for the Table of Contents (
    ) - * -> for the section numbers + * + for the section numbers * - #toc for the Table of Contents (