-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support of UA client hints in Mobile-Detect #906
Comments
@kdeckard thank you for bringing this up again!
I like the idea of the server to explicitly require for full/partial browser specs. eg.
This is horrible.
So I think there's the firmware build missing from the specs. There are multiple Android 12 builds https://github.com/serbanghita/Mobile-Detect/blob/5.x/tests/providers/vendors/Samsung.php#L253-L257
Sure this is a theoretic win to privacy but it doesn't make sense without weighting in pros/cons. I would simply go with a backward compatible refactor of UA. Old UA: Mozilla/5.0 (Linux; Android 9; SM-T810) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.1234.56 Safari/537.36 New UA: So the new structure will be |
Hi, so the client hints will basically require subsequent requests after the first one, if the server needs more detailed information. Roughly broken down: The client only sends the so called low entropy headers on the first request, which contain information, which is considered non sensitive. These include the headers: All other information need to be requested by the server on demand via the the Interestingly, there are mechanisms, which could be used like escape hatches. The proposal sums them up under the term client hint reliability. A server can define the Example from MDN:
The emphasis here is on should, as for example Chrome supports it but Edge not (at least accordingly to DeviveAtlas and I could not find more on it in MS documentation). Regarding your concerns about the reduced UA strings in Chrome:
Correct, that will be the case. They will completely remove the device information from the UAs and you can no longer make assumptions on it for mobile devices. The final rollout will be Chrome Only platform not affected by it will be IOS / IpadOS and WebView. |
@kdeckard thank you for driving the discussion!
I like this idea of asking the client while the server can be configured by default to asking for more info or not. I just don't like the implementation. I was expecting something much more simple. Here is my understanding so far: I believe that if you implement a detection solution at the PHP-level, you will have a round trip. My guts tells me that we're underestimating the power of the We need to look inward to what we have rather then invent new HTTP headers and properties, which will lead to custom parsing techniques and opinionated rules anyway. |
@serbanghita I suggest you should close the discussion here or in #942 it is confusing to follow the actual discussion. Also you should refer all other issues regarding to this problem to one discussion. At the moment it seems as if there are a lot of open issues all regarding to this topic. |
Issue description
Hi,
we are using Mobile-Detect in one of our projects and are currently investigating the impact of the upcoming reduced UA strings in Chromium and Chromium based browsers (https://www.chromium.org/updates/ua-reduction/).
As the Chromium-ecosystem as a whole will shift towards the new UA client hints, I wanted to ask if there are any plans to support the client hints any time soon?
I know that it was already asked over 2 years ago here, but are there maybe any updates to it?
Links for reference on the UA client hints:
User-Agent(s)
Suggestions
The text was updated successfully, but these errors were encountered: