diff --git a/spec/service_worker/index.html b/spec/service_worker/index.html index 4d5efaed..79bfab1e 100644 --- a/spec/service_worker/index.html +++ b/spec/service_worker/index.html @@ -321,7 +321,7 @@
postMessage(message, transfer)
WindowClient
object that represents globalObject's browsing context.Client
object that represents globalObject's worker environment.The task must use the DOM manipulation task source.
@@ -873,7 +873,7 @@ServiceWorkerGlobalScope
A ServiceWorkerGlobalScope
object represents the global execution context of a service worker. A ServiceWorkerGlobalScope
object has an associated service worker (a service worker).
A ServiceWorkerGlobalScope
object represents the global execution context of a service worker. A ServiceWorkerGlobalScope
object has an associated service worker (a service worker). A ServiceWorkerGlobalScope
object has an associated importscripts allowed flag. It is initially unset.
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 close()
method inherited from WorkerGlobalScope
, when called on the context object, should throw an "InvalidAccessError
" exception.
postMessage(message, transfer)
ServiceWorker
object, setting its service worker client to destination's service worker client, which represents the service worker associated with the global object specified by the incumbent settings object.The task must use the DOM manipulation task source, and, for those where the event loop specified by the target ServiceWorkerContainer
object's service worker client is a browsing context event loop, must be associated with the responsible document specified by that target ServiceWorkerContainer
object's service worker client.
importScripts(urls)
The importScripts(urls) method is defined on the WorkerGlobalScope interface. The following algorithm steps monkey patch the method to embrace the service worker environment. The corresponding change request has been filed in HTML: Issue 28737.
-When the importScripts(urls)
method is called on a ServiceWorkerGlobalScope
object, the following steps, or their equivalent, must be run replacing the step 5 of importScripts(urls):
When the importScripts(urls)
method is called on a ServiceWorkerGlobalScope
object, the following steps, or their equivalent, must be run as follows.
The following steps, or their equivalent, must be run preceded by the step 1 of importScripts(urls):
+ +InvalidStateError
" exception and abort these steps.The following steps, or their equivalent, must be run replacing the step 5 of importScripts(urls):
importScripts(urls)
The following step, or its equivalent, must be run as the step 7 of importScripts(urls):
- -ExtendableEvent
interface, with the event type install
, which does not bubble, is not cancelable, and has no default action.ExtendableEvent
interface, with the event type activate
, which does not bubble, is not cancelable, and has no default action.Client
object that represents request's client.true
if request's client is a window client and the event was dispatched with the user's intention for the page reload, and false
otherwise.