--- title: WindowOrWorkerGlobalScope slug: Web/API/WindowOrWorkerGlobalScope tags: - API - DOM - DOM API - NeedsTranslation - Service Worker - TopicStub - Window - WindowOrWorkerGlobalScope - Worker - WorkerGlobalScope translation_of: Web/API/WindowOrWorkerGlobalScope ---
Миксин WindowOrWorkerGlobalScope
описывает несколько функций, общих для интерфейсов {{domxref("Window")}} и {{domxref("WorkerGlobalScope")}} . Каждый из этих интерфейсов, конечно же, может добавить больше возможностей в дополнение к перечисленным ниже.
Замечание: WindowOrWorkerGlobalScope - это миксин, а не интерфейс; на самом деле вы не можете создать объект типа WindowOrWorkerGlobalScope.
Эти свойства определены в миксине {{domxref("WindowOrWorkerGlobalScope")}} и реализованы с помощью {{domxref("Window")}} и {{domxref("WorkerGlobalScope")}}.
Эти свойства определены на смеси {{domxref("WindowOrWorkerGlobalScope")}} и реализованы с помощью {{domxref("Window")}} и {{domxref("WorkerGlobalScope")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName("HTML WHATWG",'webappapis.html#windoworworkerglobalscope-mixin', 'WindowOrWorkerGlobalScope mixin')}} |
{{Spec2('HTML WHATWG')}} | This is where the main mixin is defined. |
{{SpecName('Fetch','#fetch-method','fetch()')}} | {{Spec2('Fetch')}} | Definition of the fetch() method. |
{{SpecName('Service Workers', '#self-caches', 'caches')}} | {{Spec2('Service Workers')}} | Definition of the caches property. |
{{SpecName('IndexedDB 2', '#dom-windoworworkerglobalscope-indexeddb', 'indexedDB')}} | {{Spec2('IndexedDB 2')}} | Definition of the indexedDB property. |
{{SpecName('Secure Contexts', '#dom-windoworworkerglobalscope-issecurecontext', 'isSecureContext')}} | {{Spec2('Secure Contexts')}} | Definition of the isSecureContext property. |
{{CompatibilityTable}}
Feature | Firefox (Gecko) | Chrome | Edge | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | {{CompatGeckoDesktop(52)}} | 54 | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
origin |
{{CompatGeckoDesktop(54)}} | 59 | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android Webview | Edge | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile(52)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | 54 |
origin |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile(54)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | 59 |