browser.json•2.18 kB
{
"namespace": "browser",
"description": "The web browser attributes\n",
"attributes": {
"browser.brands": {
"description": "Array of brand name and version separated by a space",
"type": "string",
"note": "This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`).\n",
"stability": "development",
"examples": ["[\" Not A;Brand 99\",\"Chromium 99\",\"Chrome 99\"]"]
},
"browser.platform": {
"description": "The platform on which the browser is running",
"type": "string",
"note": "This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the values to be consistent.\nThe list of possible values is defined in the [W3C User-Agent Client Hints specification](https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform). Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes](./os.md). However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides.\n",
"stability": "development",
"examples": ["Windows", "macOS", "Android"]
},
"browser.mobile": {
"description": "A boolean that is true if the browser is running on a mobile device",
"type": "boolean",
"note": "This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be left unset.\n",
"stability": "development"
},
"browser.language": {
"description": "Preferred language of the user using the browser",
"type": "string",
"note": "This value is intended to be taken from the Navigator API `navigator.language`.\n",
"stability": "development",
"examples": ["en", "en-US", "fr", "fr-FR"]
}
}
}