WICG / ua-client-hints

Wouldn't it be nice if `User-Agent` was a (set of) client hints?
https://wicg.github.io/ua-client-hints/
Other
583 stars 74 forks source link

Will Sec-Ch-Ua-Model support Desktop Devices #341

Closed christiancocking-foxadtech closed 1 year ago

christiancocking-foxadtech commented 1 year ago

Hey ua-client-hints team,

We have received reports where the Sec-Ch-Ua-Model: is not populated on desktop. For example see below on foxnews.com where we have the response headers being set for Sec-Ch-Ua-Model on desktop:

Screen Shot 2023-06-07 at 1 58 32 PM

However when impersonating a mobile phone:

Screen Shot 2023-06-07 at 1 57 16 PM

The documentation here does not specify devices supported:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model

What is the current state of device support for field? What is the intended/eventual support?

Thanks, Christian.

miketaylr commented 1 year ago

Hello! Thanks for the question - if you look at https://wicg.github.io/ua-client-hints/#user-agent-model, and jump down a bit it states:

User Agents MUST return the empty string for model if mobileness is false. User Agents MUST return the empty string for model even if mobileness is true, except on platforms where the model is typically exposed.

Device models have not historically been shared via the User-Agent string, but are on mobile platforms (at least for iOS and Android).

So yeah - this is expected behavior, per spec. It may be worth filing a bug to ask the MDN team to update their docs to clarify. Thanks!