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 interface WorkerNavigator {
10 WorkerNavigator includes NavigatorID;
11 WorkerNavigator includes NavigatorLanguage;
12 WorkerNavigator includes NavigatorOnLine;
13 WorkerNavigator includes NavigatorConcurrentHardware;
14 WorkerNavigator includes NavigatorStorage;
15 WorkerNavigator includes GlobalPrivacyControl;
17 // http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface
19 partial interface WorkerNavigator {
20 [Pref="dom.netinfo.enabled", Throws]
21 readonly attribute NetworkInformation connection;
24 // https://wicg.github.io/media-capabilities/#idl-index
26 partial interface WorkerNavigator {
27 [SameObject, Func="mozilla::dom::MediaCapabilities::Enabled"]
28 readonly attribute MediaCapabilities mediaCapabilities;
31 // https://w3c.github.io/web-locks/#navigator-mixins
32 WorkerNavigator includes NavigatorLocks;
34 // https://gpuweb.github.io/gpuweb/#navigator-gpu
35 WorkerNavigator includes GPUProvider;