-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New User-Agent Client Hints #408
Comments
User-Agent Client Hints spec define HTTP request header and JavaScript DOM API.
// Low Entropy Values
console.log(navigator.userAgentData.mobile); // false
copy(navigator.userAgentData.uaList); // [{ "brand": "Google Chrome", "version": "82" }]
// High Entropy Values
navigator.userAgentData.getHighEntropyValues(["platform", "platformVersion", "architecture", "model"]).then(res => console.log(res));
/* {architecture: "Intel", model: "", platform: "Mac OS X", platformVersion: "10_15_3", uaFullVersion: ""} */ Refs: |
@faisalman any plan to incorporate this into the lib? |
^ Ditto |
As of Feb 24 2021, this is the status of Chrome freezing the UA string
|
Hello, |
I'd also be interested in this. Are there any plans to add support? |
Chrome now reports
|
Is there any support planned? UA strings are the same now with Chrome 95+ between Windows 10 and 11 and between MacOS 10, 11 and 12. |
+1 on this |
+1 on this 👍 |
+1 on this too |
Starting from version |
W3C has put out a draft for new user-agent hints: https://wicg.github.io/ua-client-hints/
Also reference: https://tools.ietf.org/html/draft-west-ua-client-hints-00
Is there a plan to support these in the upcoming months? It looks like Chrome is going to freeze User-Agent strings this year.
https://www.zdnet.com/article/google-to-phase-out-user-agent-strings-in-chrome/
The text was updated successfully, but these errors were encountered: