[3] [DFN[[CODE(DOMi)@en[WindowOrWorkerGlobalScope]]]] [[インターフェイス]]は、
[CODE(DOMi)@en[Window]] と [CODE(DOMi)@en[WorkerGlobalScope]]
の共通 [[API]] を定義するものです。

* 仕様書

[REFS[
- [4] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-04-09 09:15:24 +09:00]] 版) <https://html.spec.whatwg.org/#windoworworkerglobalscope>
]REFS]

* API

[7] 次の[[メンバー]]があります。
[FIG(list short)[
- [CODE(DOMm)@en[atob]]
- [CODE(DOMm)@en[btoa]]
- [CODE(DOMa)@en[origin][self.origin]]
- [CODE(DOMm)@en[setTimeout]]
- [CODE(DOMm)@en[setInterval]]
- [CODE(DOMm)@en[clearTimeout]]
- [CODE(DOMm)@en[clearInterval]]
- [CODE(DOMm)@en[createImageBitmap]]
- [CODE(DOMa)@en[performance]]
- [CODE[isSecureContext]]
]FIG]

* 状態

[6] [CODE(DOMi)@en[Window]]、[CODE(DOMi)@en[WorkerGlobalScope]] を参照。

* 歴史

[5] 2016年4月に創設されました。いくつかの[[インターフェイス]]が本[[インターフェイス]]に移行しました。

[1] [CITE@en[Introducing self.origin, a reliable way to get the origin of a global · whatwg/html@6bdba31]]
([TIME[2016-04-07 19:58:21 +09:00]] 版)
<https://github.com/whatwg/html/commit/6bdba31102d6aea442b215fe485093c0ad322425>

[2] [CITE@en[Editorial: put properties shared across globals on mixin · whatwg/html@cdd48e1]]
([TIME[2016-04-07 20:03:25 +09:00]] 版)
<https://github.com/whatwg/html/commit/cdd48e1f570c817402bf62108847c4a9f4b00b1e>

[8] [CITE@en[Editorial: use HTML's new WindowOrWorkerGlobalScope mixin · whatwg/fetch@115858e]]
([TIME[2016-04-16 15:26:15 +09:00]] 版)
<https://github.com/whatwg/fetch/commit/115858e1aabab346d03bb93644cd06cd9c2f88ed>

[9] [CITE@en[Remove IDBEnvironment in favor of partial interface]]
([[inexorabletash]]著, [TIME[2016-09-29 11:49:50 +09:00]])
<https://github.com/w3c/IndexedDB/commit/8c2196a1752225ea6994bae7d8ddee1991cf7b5e>

[10] [CITE@en[Use Web IDL's new-ish interface mixins concept]]
([[romandev]]著, [TIME[2017-12-21 05:39:18 +09:00]])
<https://github.com/whatwg/html/commit/c8867a179c21134021dc3435e98c1b9c4542d794>

[11] [CITE@en[Extending WindowOrWorkerGlobalScope requires a partial interface mixin]]
([[saschanaz]]著, [TIME[2018-04-27 20:10:59 +09:00]])
<https://github.com/whatwg/html/commit/d3dbda53f4e3b6fe2d3535d3af7a86b277792464>

[12] [CITE@en[Extending WindowOrWorkerGlobalScope requires a partial interface mixin]]
([[saschanaz]]著, [TIME[2018-04-27 20:10:59 +09:00]])
<https://github.com/whatwg/html/commit/d3dbda53f4e3b6fe2d3535d3af7a86b277792464>

[13] [CITE@en[Use partial interface mixin for note on WindowOrWorkerGlobalScope by saschanaz · Pull Request #3650 · whatwg/html]]
([TIME[2018-05-02 13:14:46 +09:00]])
<https://github.com/whatwg/html/pull/3650>

[14] [CITE@en[WindowOrWorkerGlobalScope is a mixin]]
([[saschanaz]]著, [TIME[2018-04-27 21:46:12 +09:00]])
<https://github.com/whatwg/fetch/commit/7307d282dd7d1293d5697d63f73522007849e0db>

[15] [CITE@en[WindowOrWorkerGlobalScope is a mixin by saschanaz · Pull Request #1309 · w3c/ServiceWorker]]
([TIME[2018-05-02 13:15:24 +09:00]])
<https://github.com/w3c/ServiceWorker/pull/1309>

[16] [CITE@en[WindowOrWorkerGlobalScope is a mixin by saschanaz · Pull Request #238 · w3c/IndexedDB]]
([TIME[2018-05-02 13:15:46 +09:00]])
<https://github.com/w3c/IndexedDB/pull/238>

[17] [CITE@en[WindowOrWorkerGlobalScope is a mixin by saschanaz · Pull Request #58 · w3c/hr-time]]
([TIME[2018-05-02 13:15:54 +09:00]])
<https://github.com/w3c/hr-time/pull/58>

[18] [CITE@en[WindowOrWorkerGlobalScope is a mixin (#238)]]
([[saschanaz]]著, [TIME[2018-05-04 05:00:10 +09:00]])
<https://github.com/w3c/IndexedDB/commit/7b7362334eda06747b5c8130479591710ce367e1>

[19] [CITE@en[WindowOrWorkerGlobalScope is a mixin]]
([[saschanaz]]著, [TIME[2019-02-10 15:11:50 +09:00]])
<https://github.com/w3c/ServiceWorker/commit/c05f53fb01c57e24f9e9deb66d01320b8e761580>

[20] [CITE@en[WindowOrWorkerGlobalScope is a mixin by saschanaz · Pull Request #1309 · w3c/ServiceWorker]]
([TIME[2019-06-20 13:23:44 +09:00]])
<https://github.com/w3c/ServiceWorker/pull/1309>

[21] [CITE@en[Use WindowOrWorkerGlobalScope as a mixin (#64)]]
([[foolip]]著, [TIME[2019-02-11 18:59:40 +09:00]])
<https://github.com/w3c/webappsec-secure-contexts/commit/c907ed2b5ea5ceecab0a3f9c7f8035a055cd1e7b>

[22] [CITE@en[Use WindowOrWorkerGlobalScope as a mixin by foolip · Pull Request #64 · w3c/webappsec-secure-contexts]]
([TIME[2019-06-20 18:12:58 +09:00]])
<https://github.com/w3c/webappsec-secure-contexts/pull/64>