This interface inherits properties from the EventTarget
interface.
WorkerGlobalScope.caches
Read only Secure context-
Returns the
CacheStorage
object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests. WorkerGlobalScope.crossOriginIsolated
Read only-
Returns a boolean value that indicates whether the website is in a cross-origin isolation state.
WorkerGlobalScope.crypto
Read only-
Returns the
Crypto
object associated to the global object. WorkerGlobalScope.fonts
Read only-
Returns the
FontFaceSet
associated with the worker. WorkerGlobalScope.indexedDB
Read only-
Provides a mechanism for workers to asynchronously access capabilities of indexed databases; returns an
IDBFactory
object. WorkerGlobalScope.isSecureContext
Read only-
Returns a boolean indicating whether the current context is secure (
true
) or not (false
). WorkerGlobalScope.location
Read only-
Returns the
Location
for browsing scopes, but adapted to workers. -
Returns the
Navigator
for browsing scopes, but adapted to workers. WorkerGlobalScope.origin
Read only-
Returns the global object's origin, serialized as a string.
WorkerGlobalScope.performance
Read only-
Returns the
Performance
associated with the worker. Only a subset of the properties and methods of thePerformance
interface are available to workers. WorkerGlobalScope.scheduler
Read only-
Returns the Prioritized Task Scheduling API.
WorkerGlobalScope.trustedTypes
Read only-
Returns the Trusted Types API.
WorkerGlobalScope.self
Read only-
Returns a reference to the
WorkerGlobalScope
itself. Most of the time it is a specific scope likeServiceWorkerGlobalScope
.