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
NetworkInformation object containing information about the network connection of a device.WorkerNavigator.locks Read only
LockManager object which provides methods for requesting a new Lock object and querying for an existing <code>Lock</code> object.WorkerNavigator.permissions Read only
Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.Navigator.storage Read only
StorageManager interface for managing persistance permissions and estimating available storage.NavigatorID.appCodeName Read only
'Mozilla', in any browser. This property is kept only for compatibility purposes.NavigatorID.appName Read only
NavigatorID.appVersion Read only
NavigatorConcurrentHardware.hardwareConcurrency Read only
NavigatorLanguage.language Read only
DOMString representing the language version of the browser. The null value is returned when this is unknown.NavigatorLanguage.languages Read only
DOMStrings representing the languages known to the user, in order of preference.NavigatorOnLine.onLine Read only
Boolean indicating whether the browser is online.NavigatorID.platform Read only
NavigatorID.product Read only
'Gecko', on any browser. This property is kept only for compatibility purposes.NavigatorID.userAgent Read only
The WorkerNavigator interface implements methods from the NavigatorID, NavigatorLanguage and NavigatorOnLine interfaces.
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'WorkerNavigator' in that specification. | Living Standard |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 1 | ? | 3.5 | ? | Yes | ? |
connection
|
61 | ? | No | No | Yes | No |
permissions
|
43 | ? | 46 | ? | 30 | ? |
sendBeacon
|
39 | ? | No | No | 26 | No |
serviceWorker |
? | ? | ? | ? | ? | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | Yes | Yes | ? | 4 | Yes | ? | Yes |
connection
|
50 | 38 | ? | 53 | 37 | No | Yes |
permissions
|
43 | 43 | ? | 46 | 30 | ? | 4.0 |
sendBeacon
|
39 | 39 | ? | No | 26 | No | 4.0 |
serviceWorker |
? | ? | ? | ? | ? | ? | ? |
Worker, WorkerLocation, and WorkerGlobalScope.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator