SharedWorkerGlobalScope object (the
SharedWorker global scope) is accessible through the
SharedWorkerwas (optionally) given when it was created using the
SharedWorker()constructor. This is mainly useful for debugging purposes.
ApplicationCacheobject for the worker (see Using the application cache).
Consoleassociated with the worker.
WorkerLocationassociated with the worker.
WorkerLocationis a specific location object, mostly a subset of the
Locationfor browsing scopes, but adapted to workers.
WorkerNavigatorassociated with the worker.
WorkerNavigatoris a specific navigator object, mostly a subset of the
Navigatorfor browsing scopes, but adapted to workers.
Performanceobject associated with the worker, which is a regular performance object, but with a subset of its properties and methods available.
This interface inherits event handlers from the
WorkerGlobalScope interface, and its parent
EventTarget, and therefore implements event handlers from
EventHandlerrepresenting the code to be called when the
connectevent is raised — that is, when a
MessagePortconnection is opened between the associated
SharedWorkerand the main thread.
SharedWorkerGlobalScope's event loop, effectively closing this particular scope.
WorkerGlobalScope's event loop, effectively closing this particular scope.
window.dump, but for workers.
|HTML Living Standard |
The definition of 'SharedWorkerGlobalScope' in that specification.
|Android webview||Chrome for Android||Edge Mobile||Firefox for Android||Opera for Android||iOS Safari||Samsung Internet|
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.