Merge mozilla-central to autoland on a CLOSED TREE
[gecko.git] / dom / webidl / WorkerNavigator.webidl
blobd1817b09a5e916f3ba6163d35177a4837396b94b
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/. */
6 [Exposed=Worker]
7 interface WorkerNavigator {
8 };
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
18 [Exposed=Worker]
19 partial interface WorkerNavigator {
20     [Pref="dom.netinfo.enabled", Throws]
21     readonly attribute NetworkInformation connection;
24 // https://wicg.github.io/media-capabilities/#idl-index
25 [Exposed=Worker]
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;