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/. */
7 InstrumentedProps=(permissions)]
8 interface WorkerNavigator {
11 WorkerNavigator includes NavigatorID;
12 WorkerNavigator includes NavigatorLanguage;
13 WorkerNavigator includes NavigatorOnLine;
14 WorkerNavigator includes NavigatorConcurrentHardware;
15 WorkerNavigator includes NavigatorStorage;
16 WorkerNavigator includes GlobalPrivacyControl;
18 // http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface
20 partial interface WorkerNavigator {
21 [Pref="dom.netinfo.enabled", Throws]
22 readonly attribute NetworkInformation connection;
25 // https://wicg.github.io/media-capabilities/#idl-index
27 partial interface WorkerNavigator {
28 [SameObject, Func="mozilla::dom::MediaCapabilities::Enabled"]
29 readonly attribute MediaCapabilities mediaCapabilities;
32 // https://w3c.github.io/web-locks/#navigator-mixins
33 WorkerNavigator includes NavigatorLocks;
35 // https://gpuweb.github.io/gpuweb/#navigator-gpu
36 WorkerNavigator includes NavigatorGPU;