Firefox Tomorrow

web api interface

WorkerNavigator

View on MDN ↗

Available in workers

The WorkerNavigator interface represents a subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the self.navigator property.

Instance properties

The WorkerNavigator interface doesn’t inherit any property.

  • appCodeName Read only
    • : Always returns 'Mozilla', in any browser. This property is kept only for compatibility purposes.
  • appName Read only
    • : Returns the official name of the browser. Do not rely on this property to return the correct value.
  • appVersion Read only
    • : Returns the version of the browser as a string. Do not rely on this property to return the correct value.
  • connection Read only
    • : Provides a NetworkInformation object containing information about the network connection of a device.
  • deviceMemory Read only
    • : Returns the amount of device memory in gigabytes. This value is an approximation given by rounding to the nearest power of 2 and dividing that number by 1024.
  • globalPrivacyControl Read only
    • : Returns a boolean indicating a user’s consent to their information being shared or sold.
  • gpu Read only
    • : Returns the GPU object for the current worker context. The entry point for the WebGPU API.
  • hardwareConcurrency Read only
    • : Returns the number of logical processor cores available.
  • hid Read only Experimental
    • : Returns an HID object providing methods for connecting to HID devices already granted permission by the user and listing attached HID devices, and event handlers for responding to HID devices connecting and disconnecting.
  • language Read only
    • : Returns a string representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown.
  • languages Read only
    • : Returns an array of strings representing the languages known to the user, by order of preference.
  • locks Read only
    • : Returns a LockManager object which provides methods for requesting a new Lock object and querying for an existing Lock object.
  • mediaCapabilities Read only
    • : Returns a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities.
  • onLine Read only
    • : Returns a boolean value indicating whether the browser is online.
  • permissions Read only
  • platform Read only
    • : Returns a string representing the platform of the browser. Do not rely on this property to return the correct value.
  • product Read only
    • : Always returns 'Gecko', on any browser. This property is kept only for compatibility purposes.
  • serial Read only
    • : Returns a Serial object, which represents the entry point into the Web Serial API, to enable the control of serial ports.
  • serviceWorker Read only
  • storage Read only
    • : Returns a StorageManager interface for managing persistence permissions and estimating available storage.
  • usb Read only
    • : Returns a USB object for the current document, providing access to WebUSB API functionality.
  • userAgent Read only
    • : Returns the user agent string for the current browser.
  • userAgentData Read only Experimental
    • : Returns a NavigatorUAData object, which gives access to information about the browser and operating system of the user.

Instance methods

The WorkerNavigator interface doesn’t inherit any method.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also