From 5982f1fb8c72a41d946fba4c373a1408c649cccb Mon Sep 17 00:00:00 2001 From: Victor Tan Date: Thu, 3 Mar 2022 12:23:35 -0500 Subject: [PATCH] update gethighentropyvalues client hints options As we are going to deprecate the existing client hint Sec-CH-UA-Full-Version, using Sec-CH-UA-Full-Version-List instead. For details please check WICG/ua-client-hints#196. Update the documents to match the spec: https://wicg.github.io/ua-client-hints/#interface --- .../api/navigatoruadata/gethighentropyvalues/index.md | 9 ++++++--- files/en-us/web/api/navigatoruadata/index.md | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md b/files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md index 5afbb17b31442f7..a518ffaa8504254 100644 --- a/files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md +++ b/files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md @@ -31,7 +31,8 @@ NavigatorUAData.getHighEntropyValues(hints); - `"bitness"` - `"model"` - `"platformVersion"` - - `"uaFullVersion"` + - `"uaFullVersion"` {{deprecated_inline}} + - `"fullVersionList"` ### Return value @@ -45,8 +46,10 @@ An object containing some or all of the following values, based on the hints req - : A {{domxref("DOMString","string")}} containing the device model. For example, `"Pixel 2XL"`. - `platformVersion` - : A {{domxref("DOMString","string")}} containing the platform version. For example, `"10.0"`. -- `uaFullVersion` +- `uaFullVersion` {{deprecated_inline}} - : A {{domxref("DOMString","string")}} containing the full browser version. For example, `"91.0.4472.124"`. +- `fullVersionList` + - : An array of brand information containing the browser name and full version. For example, `"Chromium";v="91.0.4472.124","Google Chrome";v="91.0.4472.124"`. ### Exceptions @@ -62,7 +65,7 @@ navigator.userAgentData.getHighEntropyValues( ["architecture", "model", "platformVersion", - "uaFullVersion"]) + "fullVersionList"]) .then(ua => { console.log(ua) }); ``` diff --git a/files/en-us/web/api/navigatoruadata/index.md b/files/en-us/web/api/navigatoruadata/index.md index a56593eaa38957e..9bf23b52299ae3a 100644 --- a/files/en-us/web/api/navigatoruadata/index.md +++ b/files/en-us/web/api/navigatoruadata/index.md @@ -52,7 +52,7 @@ navigator.userAgentData.getHighEntropyValues( "model", "platform", "platformVersion", - "uaFullVersion"]) + "fullVersionList"]) .then(ua => { console.log(ua) }); ```