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 |
---|---|---|
HTML Living Standard The definition of ' WindowOrWorkerGlobalScope mixin' in that specification. | Living Standard | This is where the main mixin is defined. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 54 | ? | 52 | ? | ? | ? |
atob |
Yes | Yes | 1
|
10 | Yes | Yes |
btoa |
Yes | Yes | 1
|
10 | Yes | Yes |
caches
|
40 | ? | 42
|
No | ? | No |
clearInterval |
1 | Yes | 1
|
4 | 4 | 4 |
clearTimeout |
1 | Yes | 1
|
4 | 4 | 4 |
createImageBitmap |
50 | No | 42
|
No | Yes | No |
fetch
|
42 | 14 | 39
|
No | 29
|
10 |
indexedDB |
24
|
Yes | 16
|
10 | 15 | 7 |
isSecureContext
|
55 | ? | 52 | ? | ? | ? |
origin |
59 | ? | 54 | No | No | No |
setInterval |
1 | Yes | 1
|
4 | 4 | 1 |
setTimeout |
1 | Yes | 1
|
4 | 4 | 1 |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | ? | 54 | ? | 52 | ? | ? | ? |
atob |
Yes | Yes | ? | 4
|
? | Yes | ? |
btoa |
Yes | Yes | ? | 4
|
? | Yes | ? |
caches
|
Yes | Yes | ? | 42
|
Yes | Yes | ? |
clearInterval |
1 | 18 | Yes | 4
|
6 | 1 | ? |
clearTimeout |
1 | 18 | Yes | 4
|
6 | 1 | ? |
createImageBitmap |
50 | 50 | ? | ? | Yes | ? | ? |
fetch
|
42 | 42 | 14 | 39
|
? | 10 | ? |
indexedDB |
Yes | ? | Yes | 22
|
22 | 8 | ? |
isSecureContext
|
55 | 55 | ? | 52 | ? | ? | ? |
origin |
59 | 59 | ? | 54 | No | No | ? |
setInterval |
1 | 18 | Yes | 4
|
6 | 1 | ? |
setTimeout |
1 | 18 | Yes | 4
|
6 | 1 | ? |
© 2005–2018 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