WorkerNavigator.webidl (1518B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 6 [Exposed=Worker] 7 interface WorkerNavigator { 8 }; 9 10 WorkerNavigator includes NavigatorID; 11 WorkerNavigator includes NavigatorLanguage; 12 WorkerNavigator includes NavigatorOnLine; 13 WorkerNavigator includes NavigatorConcurrentHardware; 14 WorkerNavigator includes NavigatorStorage; 15 WorkerNavigator includes GlobalPrivacyControl; 16 17 // http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface 18 [Exposed=Worker] 19 partial interface WorkerNavigator { 20 [Pref="dom.netinfo.enabled", Throws] 21 readonly attribute NetworkInformation connection; 22 }; 23 24 // https://wicg.github.io/media-capabilities/#idl-index 25 [Exposed=Worker] 26 partial interface WorkerNavigator { 27 [SameObject] 28 readonly attribute MediaCapabilities mediaCapabilities; 29 }; 30 31 // https://w3c.github.io/web-locks/#navigator-mixins 32 WorkerNavigator includes NavigatorLocks; 33 34 // https://gpuweb.github.io/gpuweb/#navigator-gpu 35 WorkerNavigator includes NavigatorGPU; 36 37 // https://w3c.github.io/permissions/#webidl-2112232240 38 [Exposed=(Worker)] 39 partial interface WorkerNavigator { 40 [SameObject] readonly attribute Permissions permissions; 41 }; 42 43 // https://w3c.github.io/ServiceWorker/#navigator-serviceworker 44 [Exposed=Worker] 45 partial interface WorkerNavigator { 46 [Func="ServiceWorkersEnabled", SameObject] 47 readonly attribute ServiceWorkerContainer serviceWorker; 48 };