2025-04-02 09:30:34 -04:00
|
|
|
#import <GPC/GlobalPrivacyControl.idl>
|
2024-10-08 15:51:30 +02:00
|
|
|
#import <HTML/NavigatorConcurrentHardware.idl>
|
|
|
|
#import <HTML/NavigatorDeviceMemory.idl>
|
2022-10-08 20:53:08 -06:00
|
|
|
#import <HTML/NavigatorID.idl>
|
|
|
|
#import <HTML/NavigatorLanguage.idl>
|
|
|
|
#import <HTML/NavigatorOnLine.idl>
|
2024-09-04 23:53:52 +01:00
|
|
|
#import <MediaCapabilitiesAPI/MediaCapabilities.idl>
|
2025-08-06 09:07:40 +02:00
|
|
|
#import <Serial/Serial.idl>
|
2024-08-13 20:56:19 +01:00
|
|
|
#import <StorageAPI/NavigatorStorage.idl>
|
2022-10-08 20:53:08 -06:00
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/workers.html#workernavigator
|
2022-02-06 19:12:57 -07:00
|
|
|
[Exposed=Worker]
|
2024-09-04 23:53:52 +01:00
|
|
|
interface WorkerNavigator {
|
|
|
|
// https://w3c.github.io/media-capabilities/#dom-workernavigator-mediacapabilities
|
|
|
|
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
|
2024-09-04 14:17:03 -06:00
|
|
|
|
2025-08-06 09:07:40 +02:00
|
|
|
// https://wicg.github.io/serial/#extensions-to-the-workernavigator-interface
|
|
|
|
[SameObject] readonly attribute Serial serial;
|
|
|
|
|
2024-09-04 14:17:03 -06:00
|
|
|
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
|
|
|
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
2024-09-04 23:53:52 +01:00
|
|
|
};
|
2022-02-06 19:12:57 -07:00
|
|
|
|
2025-04-02 09:30:34 -04:00
|
|
|
Navigator includes GlobalPrivacyControl;
|
2022-10-08 20:53:08 -06:00
|
|
|
WorkerNavigator includes NavigatorID;
|
|
|
|
WorkerNavigator includes NavigatorLanguage;
|
|
|
|
WorkerNavigator includes NavigatorOnLine;
|
|
|
|
WorkerNavigator includes NavigatorConcurrentHardware;
|
2024-08-13 20:56:19 +01:00
|
|
|
WorkerNavigator includes NavigatorStorage;
|
2024-10-08 15:51:30 +02:00
|
|
|
WorkerNavigator includes NavigatorDeviceMemory;
|