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
590 stars 77 forks source link

Support for Chrome on iOS #337

Closed christiancocking-foxadtech closed 1 year ago

christiancocking-foxadtech commented 1 year ago

Hello,

We are preparing to support User Agent Client hints as our sites do heavily depend on the granular User Agent data for a variety of requests out to our advertising partners.

In testing, we have noticed that on iOS based devices the client hints are not supported. It was also interesting to note that "Chrome on iOS" is not in the device support table here:

https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API

Is this expected that Chrome on iOS shouldn't pass forward values.

PS: We are setting our response headers to ensure that the Client Hints are forwarded along to the various third parties that require the data.

miketaylr commented 1 year ago

(this is a Chrome-specific issue, rather than a spec one, but happy to answer)

Unfortunately for non-Safari iOS browsers (include Chrome on iOS), WebKit will need to add support for User-Agent Client Hints before they can be enabled (because they control the network stack).

The relevant standards issue for the WebKit project is over here: https://github.com/WebKit/standards-positions/issues/70, in case you would like to follow along.

christiancocking-foxadtech commented 1 year ago

Thanks this is good to know and I appreciate the clarification!