2013-07-24 11:38:23 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2014-08-05 06:20:34 +04:00
|
|
|
|
2023-09-28 22:40:50 +03:00
|
|
|
[Exposed=Worker,
|
|
|
|
InstrumentedProps=(permissions)]
|
2013-07-24 11:38:23 +04:00
|
|
|
interface WorkerNavigator {
|
|
|
|
};
|
2013-11-20 18:29:01 +04:00
|
|
|
|
2019-09-24 18:22:26 +03:00
|
|
|
WorkerNavigator includes NavigatorID;
|
|
|
|
WorkerNavigator includes NavigatorLanguage;
|
|
|
|
WorkerNavigator includes NavigatorOnLine;
|
|
|
|
WorkerNavigator includes NavigatorConcurrentHardware;
|
|
|
|
WorkerNavigator includes NavigatorStorage;
|
2023-02-06 14:26:04 +03:00
|
|
|
WorkerNavigator includes GlobalPrivacyControl;
|
2016-12-16 10:50:23 +03:00
|
|
|
|
|
|
|
// http://wicg.github.io/netinfo/#extensions-to-the-navigator-interface
|
2018-05-31 15:32:51 +03:00
|
|
|
[Exposed=Worker]
|
2016-12-16 10:50:23 +03:00
|
|
|
partial interface WorkerNavigator {
|
2019-06-13 12:01:41 +03:00
|
|
|
[Pref="dom.netinfo.enabled", Throws]
|
2016-12-16 10:50:23 +03:00
|
|
|
readonly attribute NetworkInformation connection;
|
|
|
|
};
|
2018-05-31 15:32:51 +03:00
|
|
|
|
|
|
|
// https://wicg.github.io/media-capabilities/#idl-index
|
|
|
|
[Exposed=Worker]
|
|
|
|
partial interface WorkerNavigator {
|
|
|
|
[SameObject, Func="mozilla::dom::MediaCapabilities::Enabled"]
|
|
|
|
readonly attribute MediaCapabilities mediaCapabilities;
|
|
|
|
};
|
2021-08-18 04:23:45 +03:00
|
|
|
|
2023-07-13 15:32:19 +03:00
|
|
|
// https://w3c.github.io/web-locks/#navigator-mixins
|
2021-08-18 04:23:45 +03:00
|
|
|
WorkerNavigator includes NavigatorLocks;
|
2022-04-04 19:42:02 +03:00
|
|
|
|
|
|
|
// https://gpuweb.github.io/gpuweb/#navigator-gpu
|
2023-07-25 22:21:21 +03:00
|
|
|
WorkerNavigator includes NavigatorGPU;
|