WorkerNavigator

Runtime identity, locale, platform, and hardware information.

A single WorkerNavigator instance is available as globalThis.navigator. The constructor is exposed for instanceof checks but cannot be called.

AttributeValue
appCodeName"Mozilla"
appName"Netscape"
product"Gecko"
appVersionElide version and platform identity.
userAgentElide worker user-agent string.
platformlinux, darwin, win32, another known host label, or unknown.
languageRuntime locale, normally a BCP-47 tag.
languagesFrozen one-element array containing language.
onLineStatic true.
hardwareConcurrencyAvailable processor count, at least 1.
navigator === globalThis.navigator; // true
Object.isFrozen(navigator.languages); // true
navigator.onLine; // true

Values are captured when the realm starts and do not change during that realm.