The WindowOrWorkerGlobalScope
mixin describes several features common to the Window
and WorkerGlobalScope
interfaces. Each of these interfaces can, of course, add more features in addition to the ones listed below.
Note: WindowOrWorkerGlobalScope
is a mixin and not an interface; you can't actually create an object of type WindowOrWorkerGlobalScope
.
These properties are defined on the WindowOrWorkerGlobalScope
mixin, and implemented by Window
and WorkerGlobalScope
.
WindowOrWorkerGlobalScope.caches
Read only
CacheStorage
object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests.WindowOrWorkerGlobalScope.indexedDB
Read only
IDBFactory
object.WindowOrWorkerGlobalScope.isSecureContext
Read only
true
) or not (false
).WindowOrWorkerGlobalScope.origin
Read only
These properties are defined on the WindowOrWorkerGlobalScope
mixin, and implemented by Window
and WorkerGlobalScope
.
WindowOrWorkerGlobalScope.atob()
WindowOrWorkerGlobalScope.btoa()
WindowOrWorkerGlobalScope.clearInterval()
WindowOrWorkerGlobalScope.setInterval()
.WindowOrWorkerGlobalScope.clearTimeout()
WindowOrWorkerGlobalScope.setTimeout()
.WindowOrWorkerGlobalScope.createImageBitmap()
Promise
which resolves to an ImageBitmap
. Optionally the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh.WindowOrWorkerGlobalScope.fetch()
WindowOrWorkerGlobalScope.setInterval()
WindowOrWorkerGlobalScope.setTimeout()
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of ' WindowOrWorkerGlobalScope mixin' in that specification. | Living Standard | This is where the main mixin is defined. |
Fetch The definition of 'fetch()' in that specification. | Living Standard | Definition of the fetch() method. |
Service Workers The definition of 'caches' in that specification. | Working Draft | Definition of the caches property. |
Indexed Database API 2.0 The definition of 'indexedDB' in that specification. | Editor's Draft | Definition of the indexedDB property. |
Secure Contexts The definition of 'isSecureContext' in that specification. | Working Draft | Definition of the isSecureContext property. |
Feature | Firefox (Gecko) | Chrome | Edge | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 52 (52) | ? | ? | ? | ? | ? |
Feature | Android Webview | Edge | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | ? | ? | 52.0 (52) | ? | ? | ? | ? | ? |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope