Nuestros voluntarios aún no han traducido este artículo al Español. ¡Únete a nosotros y ayúdanos a traducirlo!
También puedes leer el artículo en English (US).

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 WorkerGlobalScope.navigator property obtained by calling window.self.navigator.


The WorkerNavigator interface implements properties from the NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorDataStore, and NavigatorConcurrentHardware interfaces.

WorkerNavigator.connection Read only
Provides a NetworkInformation object containing information about the network connection of a device.
WorkerNavigator.locks Read only
Returns a LockManager object which provides methods for requesting a new Lock object and querying for an existing <code>Lock</code> object.
WorkerNavigator.permissions Read only
Returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API. Read only
Returns a StorageManager interface for managing persistance permissions and estimating available storage.

Inherited properties

NavigatorID.appCodeName Read only
Always returns 'Mozilla', in any browser. This property is kept only for compatibility purposes.
NavigatorID.appName Read only
Returns the official name of the browser. Do not rely on this property to return the correct value.
NavigatorID.appVersion Read only
Returns the version of the browser as a string. Do not rely on this property to return the correct value.
NavigatorConcurrentHardware.hardwareConcurrency Read only
Returns the number of logical processor cores available.
NavigatorLanguage.language Read only
Returns a DOMString representing the language version of the browser. The null value is returned when this is unknown.
NavigatorLanguage.languages Read only
Returns an array of DOMStrings representing the languages known to the user, in order of preference.
NavigatorOnLine.onLine Read only
Returns a Boolean indicating whether the browser is online.
NavigatorID.platform Read only
Returns a string representing the platform of the browser. Do not rely on this property to return the correct value.
NavigatorID.product Read only
Always returns 'Gecko', on any browser. This property is kept only for compatibility purposes.
NavigatorID.userAgent Read only
Returns the user agent string for the current browser.


The WorkerNavigator interface implements methods from the NavigatorID, NavigatorLanguage and NavigatorOnLine interfaces.

Used to asynchronously transfer a small amount of data using HTTP from a Worker to a web server.


Specification Status Comment
HTML Living Standard
The definition of 'WorkerNavigator' in that specification.
Living Standard  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support1 ?3.5 ? Yes ?
connection61 ? No No Yes No
permissions43 ?46 ?30 ?
sendBeacon39 ? No No26 No
serviceWorker ? ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ?4 Yes ? Yes
connection5038 ?5337 No Yes
permissions4343 ?4630 ?4.0
sendBeacon3939 ? No26 No4.0
serviceWorker ? ? ? ? ? ? ?

See also


Etiquetas y colaboradores del documento

Colaboradores en esta página: jpmedley, fscholz, chrisdavidmills, Sheppy, AFBarstow, teoli
Última actualización por: jpmedley,