Definition
HTML Standard defines WorkerNavigator
[Exposed=Worker]
interface WorkerNavigator {};
WorkerNavigator includes NavigatorID;
WorkerNavigator includes NavigatorLanguage;
WorkerNavigator includes NavigatorOnLine;
WorkerNavigator includes NavigatorConcurrentHardware;
This interface is extended in the following specifications:
- Storage Standard
WorkerNavigator includes NavigatorStorage;
- Network Information API
WorkerNavigator includes NavigatorNetworkInformation;
- Web Serial API
[Exposed=DedicatedWorker, SecureContext] partial interface WorkerNavigator { [SameObject] readonly attribute Serial serial; };
- Storage Buckets API
WorkerNavigator includes NavigatorStorageBuckets;
- User-Agent Client Hints
WorkerNavigator includes NavigatorUA;
- WebHID API
[Exposed=(DedicatedWorker,ServiceWorker), SecureContext] partial interface WorkerNavigator { [SameObject] readonly attribute HID hid; };
- WebUSB API
[Exposed=Worker, SecureContext] partial interface WorkerNavigator { [SameObject] readonly attribute USB usb; };
- Badging API
WorkerNavigator includes NavigatorBadge;
- Device Memory
WorkerNavigator includes NavigatorDeviceMemory;
- Media Capabilities
[Exposed=Worker] partial interface WorkerNavigator { [SameObject] readonly attribute MediaCapabilities mediaCapabilities; };
- Permissions
[Exposed=(Worker)] partial interface WorkerNavigator { [SameObject] readonly attribute Permissions permissions; };
- Service Workers Nightly
partial interface WorkerNavigator { [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker; };
- Web Locks API
WorkerNavigator includes NavigatorLocks;
- WebGPU
WorkerNavigator includes NavigatorGPU;
- Web Neural Network API
WorkerNavigator includes NavigatorML;
Consolidated IDL (across mixin and partials)
[Exposed=Worker]
interface WorkerNavigator {
readonly attribute DOMString appCodeName; // constant "Mozilla"
readonly attribute DOMString appName; // constant "Netscape"
readonly attribute DOMString appVersion;
readonly attribute DOMString platform;
readonly attribute DOMString product; // constant "Gecko"
[Exposed=Window] readonly attribute DOMString productSub;
readonly attribute DOMString userAgent;
[Exposed=Window] readonly attribute DOMString vendor;
[Exposed=Window] readonly attribute DOMString vendorSub;
[Exposed=Window] boolean taintEnabled(); // constant false
[Exposed=Window] readonly attribute DOMString oscpu;
readonly attribute DOMString language;
readonly attribute FrozenArray<DOMString> languages;
readonly attribute boolean onLine;
readonly attribute unsigned long long hardwareConcurrency;
[SameObject] readonly attribute StorageManager storage;
[SameObject] readonly attribute NetworkInformation connection;
[SameObject] readonly attribute Serial serial;
[SameObject] readonly attribute StorageBucketManager storageBuckets;
[SecureContext] readonly attribute NavigatorUAData userAgentData;
[SameObject] readonly attribute HID hid;
[SameObject] readonly attribute USB usb;
Promise<undefined> setAppBadge(
optional [EnforceRange] unsigned long long contents
);
Promise<undefined> clearAppBadge();
readonly attribute double deviceMemory;
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
[SameObject] readonly attribute Permissions permissions;
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
readonly attribute LockManager locks;
[SameObject, SecureContext] readonly attribute GPU gpu;
[SecureContext, SameObject] readonly attribute ML ml;};
Methods and attributes that return objects implementing WorkerNavigator
Referring IDL interfaces/dictionaries
Referring specifications
- Web Serial API refers to
WorkerNavigator
- WebHID API refers to
WorkerNavigator
- WebUSB API refers to
WorkerNavigator
- Media Capabilities refers to
WorkerNavigator
- Permissions refers to
WorkerNavigator
- Service Workers Nightly refers to
WorkerNavigator