- Jul 2023
-
datatracker.ietf.org datatracker.ietf.org
-
developer.chrome.com developer.chrome.com
-
```js // Log the full user-agent data navigator .userAgentData.getHighEntropyValues( ["architecture", "model", "bitness", "platformVersion", "fullVersionList"]) .then(ua => { console.log(ua) });
// output { "architecture":"x86", "bitness":"64", "brands":[ { "brand":" Not A;Brand", "version":"99" }, { "brand":"Chromium", "version":"98" }, { "brand":"Google Chrome", "version":"98" } ], "fullVersionList":[ { "brand":" Not A;Brand", "version":"99.0.0.0" }, { "brand":"Chromium", "version":"98.0.4738.0" }, { "brand":"Google Chrome", "version":"98.0.4738.0" } ], "mobile":false, "model":"", "platformVersion":"12.0.1" } ```
Tags
- js
- http
- http:header=user-agent
- http:header=sec-ch-ua-full-version-list
- http:header=sec-ch-ua-full-version
- http:header=sec-ch-ua-arch
- http:header=accept-ch
- cito:cites=urn:ietf:rfc:1945
- http:header=sec-ch-ua-model
- <meta http-equiv="accept-ch"/>
- mobile
- cito:cites=urn:ietf:rfc:8942
- wikipedia:en=HTTP_Client_Hints
- http:header=sec-ch-ua
- http:header=sec-ch-ua-mobile
- http:header=sec-ch-ua-platform-version
- http:header=sec-ch-ua-platform
- conneg
- http:header=sec-ch-ua-bitness
Annotators
URL
-
-
developer.mozilla.org developer.mozilla.org
-
- Note: Client hints can also be specified in HTML using the <meta> element with the
http-equiv
attribute.
html <meta http-equiv="Accept-CH" content="Width, Downlink, Sec-CH-UA" />
- Example:
http HTTP/1.1 200 OK Content-Type: text/html Accept-CH: Sec-CH-Prefers-Reduced-Motion Vary: Sec-CH-Prefers-Reduced-Motion Critical-CH: Sec-CH-Prefers-Reduced-Motion
- Note: Client hints can also be specified in HTML using the <meta> element with the
Tags
- mobile
- http:header=critical-ch
- cito:cites=urn:ietf:rfc:8942
- cito:cites=urn:ietf:id:draft-davidben-http-client-hint-reliability
- http
- http:header=sec-ch-prefers-reduced-motion
- wikipedia:en=HTTP_Client_Hints
- http:header=vary
- http:header=accept-ch
- conneg
- <meta http-equiv="accept-ch"/>
Annotators
URL
-
-
wicg.github.io wicg.github.io
-
```idl dictionary NavigatorUABrandVersion { DOMString brand; DOMString version; };
dictionary UADataValues { DOMString architecture; DOMString bitness; sequence<NavigatorUABrandVersion> brands; DOMString formFactor; sequence<NavigatorUABrandVersion> fullVersionList; DOMString model; boolean mobile; DOMString platform; DOMString platformVersion; DOMString uaFullVersion; // deprecated in favor of fullVersionList boolean wow64; };
dictionary UALowEntropyJSON { sequence<NavigatorUABrandVersion> brands; boolean mobile; DOMString platform; };
[Exposed=(Window,Worker)] interface NavigatorUAData { readonly attribute FrozenArray<NavigatorUABrandVersion> brands; readonly attribute boolean mobile; readonly attribute DOMString platform; Promise<UADataValues> getHighEntropyValues (sequence<DOMString> hints ); UALowEntropyJSON toJSON (); };
interface mixin NavigatorUA { [SecureContext] readonly attribute NavigatorUAData userAgentData ; };
Navigator includes NavigatorUA; WorkerNavigator includes NavigatorUA; ```
Tags
- http
- http:header=user-agent
- http:header=sec-ch-ua-full-version
- http:header=sec-ch-ua-full-version-list
- http:header=sec-ch-ua-arch
- http:header=accept-ch
- http:header=sec-ch-ua-bitness
- http:header=sec-ch-ua-model
- mobile
- cito:cites=urn:ietf:rfc:8942
- http:header=sec-ch-ua-wow64
- wikipedia:en=HTTP_Client_Hints
- http:header=sec-ch-ua
- http:header=sec-ch-ua-mobile
- http:header=sec-ch-ua-platform-version
- http:header=sec-ch-ua-form-factor
- conneg
- http:header=sec-ch-ua-platform
Annotators
URL
-