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] 7interface WorkerNavigator { 8}; 9 10WorkerNavigator includes NavigatorID; 11WorkerNavigator includes NavigatorLanguage; 12WorkerNavigator includes NavigatorOnLine; 13WorkerNavigator includes NavigatorConcurrentHardware; 14WorkerNavigator includes NavigatorStorage; 15 16// http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface 17[Exposed=Worker] 18partial interface WorkerNavigator { 19 [Func="mozilla::dom::DOMPrefs::NetworkInformationEnabled", Throws] 20 readonly attribute NetworkInformation connection; 21}; 22 23// https://wicg.github.io/media-capabilities/#idl-index 24[Exposed=Worker] 25partial interface WorkerNavigator { 26 [SameObject, Func="mozilla::dom::MediaCapabilities::Enabled"] 27 readonly attribute MediaCapabilities mediaCapabilities; 28}; 29