w3c / media-and-entertainment

Repository for the Media and Entertainment Interest Group
55 stars 15 forks source link

User-Agent string in embedded TV browsers #47

Open chrisn opened 3 years ago

chrisn commented 3 years ago

Web browsers are increasingly seeking to improve user privacy by reducing fingerprinting surface, limit use of third party tracking cookies, etc.

One change that is relevant to embedded browsers in TVs is freezing of the User-Agent string.

Apple introduced this a while ago in Safari, and Mozilla support freezing the User Agent string. For Google Chrome, refer to the following Chrome Platform status items:

and this Intent to Deprecate thread, also this related thread regarding the MacOS version number.

Google have proposed User-Agent Client Hints as a new mechanism for obtaining browser, device, and platform version information. This API has shipped in Chrome, with a view to freezing the User-Agent string at some time in the future.

From Google's perspective, this is part of a larger set of changes, known as the Privacy Sandbox.

As yet, it is not clear whether User-Agent Client Hints has support from other browser vendors.

With UA-CH, HTTP requests by default would only include the browser brand name and major version number, while other information is available on an opt-in basis - either by setting an Accept-CH HTTP response header, or calling a JavaScript API.

As many embedded TV browsers are based on Chromium, we recommend that TV browser integrators and TV standards groups that place requirements on content of the User-Agent string review their use of the User-Agent string and give feedback on the proposed changes.

MEIG is open to discussion on how TV devices and content providers can adapt to these proposed changes or to help coordinate sending media industry feedback.

A few questions that come to mind are:

Feedback can also be sent directly to the User-Agent Client Hints GitHub issue tracker.

chrisn commented 1 year ago

Update: A Sec-CH-UA-Form-Factor hint has just been added, which allows for values such as "TV", "Mobile", "Tablet", "VR", etc. See https://github.com/WICG/ua-client-hints/issues/333

anawhj commented 1 year ago

Good point! It's been applied to https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor by #338 last month. It might require long times to adapt it to device maker and contents providers, but it will show several usages in future.