Skip to content
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

Frozen/Reduced Chrome UA #193

Closed
nielsbasjes opened this issue Jan 15, 2020 · 15 comments
Closed

Frozen/Reduced Chrome UA #193

nielsbasjes opened this issue Jan 15, 2020 · 15 comments
Assignees
Labels
investigate Some things need some investigation first New Browser Waiting for external dependency In case we depend on an external dependency and we must wait to complete this issue.

Comments

@nielsbasjes
Copy link
Owner

From Discover on Google https://www.zdnet.com/article/google-to-phase-out-user-agent-strings-in-chrome/

@nielsbasjes
Copy link
Owner Author

https://www.chromestatus.com/feature/5704553745874944

We want to freeze (but not remove) the User Agent string ...

At this point I have not been able to find an indication what the "frozen" User Agent will look like.

Similar:
mozilla/standards-positions#202 (comment)
https://twitter.com/_scottlow/status/1206831008261132289

@nielsbasjes nielsbasjes added the investigate Some things need some investigation first label Jan 17, 2020
@nielsbasjes
Copy link
Owner Author

Looking at these changes we find several strings
https://chromium.googlesource.com/chromium/src.git/+/ac24e578a3694c8f4c6c35ee3b7a8d046d686e67%5E%21/

Added them as testcases.

@nielsbasjes nielsbasjes added the Waiting for external dependency In case we depend on an external dependency and we must wait to complete this issue. label May 22, 2020
@nielsbasjes
Copy link
Owner Author

Waiting for a Chrome version that actually changes this.

@nielsbasjes
Copy link
Owner Author

Chrome 83 now has it built in.
The code clearly makes that ALL desktop devices will show the same OS.
So Chrome on Linux or Mac will show Windows 10 !

const char kDesktop[] =
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, "
    "like Gecko) Chrome/%s.0.0.0 Safari/537.36";
const char kAndroid[] =
    "Mozilla/5.0 (Linux; Android 9; Unspecified Device) "
    "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s.0.0.0 "
    "Safari/537.36";
const char kAndroidMobile[] =
    "Mozilla/5.0 (Linux; Android 9; Unspecified Device) "
    "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s.0.0.0 Mobile "
    "Safari/537.36";

@nielsbasjes nielsbasjes changed the title Future Chrome UA Frozen Chrome UA Jun 11, 2020
@nielsbasjes
Copy link
Owner Author

Keeping this issue open to track what the next Chromium/Chrome/Edge versions do.

@nielsbasjes
Copy link
Owner Author

@nielsbasjes
Copy link
Owner Author

@nielsbasjes
Copy link
Owner Author

https://www.chromestatus.com/feature/5704553745874944
Apparently Chrome 95 (now is 94) will be the next step.

@nielsbasjes
Copy link
Owner Author

@nielsbasjes
Copy link
Owner Author

Apparently Edge 94 and 95 no longer have the freeze/reduce option in the flags.

@nielsbasjes
Copy link
Owner Author

@nielsbasjes
Copy link
Owner Author

Quote:
Also note that the macOS platform version was already capped to 10_15_7 in Chrome 90 for site compatibility reasons.
https://bugs.chromium.org/p/chromium/issues/detail?id=1175225

@nielsbasjes nielsbasjes changed the title Frozen Chrome UA Frozen/Reduced Chrome UA Nov 9, 2021
@nielsbasjes
Copy link
Owner Author

All known/documented reductions have been implemented.

@Chaho12
Copy link

Chaho12 commented Feb 23, 2023

All known/documented reductions have been implemented.

From what version did you implement all reduced chrome ua? Is it starting from v7?

Also, what is the minimum java req to use this library? is it 1.8 ? or java 11

Never mind. I just found out that java 8 or later works, but in order to use java 8, need to add compatible code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Some things need some investigation first New Browser Waiting for external dependency In case we depend on an external dependency and we must wait to complete this issue.
Projects
None yet
Development

No branches or pull requests

2 participants