--- title: WindowOrWorkerGlobalScope slug: Web/API/WindowOrWorkerGlobalScope tags: - API - DOM - DOM API - Service Worker - TopicStub - Window - WindowOrWorkerGlobalScope - Worker - WorkerGlobalScope translation_of: Web/API/WindowOrWorkerGlobalScope ---
Le mixin WindowOrWorkerGlobalScope décrit plusieurs fonctionnalités communes aux interfaces {{domxref("Window")}} et {{domxref("WorkerGlobalScope")}}. Chacune de ces interfaces peut, bien entendu, ajouter d'autres fonctionnalités en plus de celles listées ci-dessous.
Note: WindowOrWorkerGlobalScope est un mixin et non une interface; vous ne pouvez pas réellement créer un objet de type WindowOrWorkerGlobalScope.
Ces propriétés sont définies sur le mixin {{domxref("WindowOrWorkerGlobalScope")}}, et implémentées par {{domxref("Window")}} et {{domxref("WorkerGlobalScope")}}.
true) ou non (false).Ces propriétés sont définies sur le mixin {{domxref("WindowOrWorkerGlobalScope")}}, et implémentées par {{domxref("Window")}} et {{domxref("WorkerGlobalScope")}}.
| Spécification | Statut | Commentaire |
|---|---|---|
{{SpecName("HTML WHATWG",'webappapis.html#windoworworkerglobalscope-mixin', 'WindowOrWorkerGlobalScope mixin')}} |
{{Spec2('HTML WHATWG')}} | C'est là que le mixin principal est défini. |
| {{SpecName('Fetch','#fetch-method','fetch()')}} | {{Spec2('Fetch')}} | Définition de la méthode fetch(). |
| {{SpecName('Service Workers', '#self-caches', 'caches')}} | {{Spec2('Service Workers')}} | Définition de la propriété caches. |
| {{SpecName('IndexedDB 2', '#dom-windoworworkerglobalscope-indexeddb', 'indexedDB')}} | {{Spec2('IndexedDB 2')}} | Définition de la propriété indexedDB. |
| {{SpecName('Secure Contexts', 'webappapis.html#dom-origin', 'isSecureContext')}} | {{Spec2('Secure Contexts')}} | Définition de la propriété isSecureContext. |
{{CompatibilityTable}}
| Fonctionnalité | Firefox (Gecko) | Chrome | Edge | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Support de base | {{CompatGeckoDesktop(52)}} | 54 | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
origine |
{{CompatGeckoDesktop(54)}} | 59 | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
| Fonctionnalité | Android Webview | Edge | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
|---|---|---|---|---|---|---|---|---|
| Support de base | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile(52)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | 54 |
origine |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile(54)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | 59 |