WebIDLpedia

WorkerNavigator interface

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:

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;
  readonly attribute boolean globalPrivacyControl;
  [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