Skip to content

Conversation

@chrisdavidmills
Copy link
Contributor

@chrisdavidmills chrisdavidmills commented Oct 23, 2025

Summary

Chromium browsers support User-Agent reduction, which means that features such as the User-Agent HTTP header provide less-specific information in an effort to reduce their effectiveness for fingerprinting/tracking.

This PR adds data points covering User-Agent reduction to relevant web platform features that I know to be affected by the change.

Compat data sources:

Another question for Mike: For all of these data points, I used https://wicg.github.io/ua-client-hints/#user-agent as the spec_url. Are there better spec URLs we can point to for these individual features?

This PR is part of the final set of privacy sandbox information to be added to MDN. Much of it is being removed, but this feature is stable and will be kept, so it should be added.

Test results and supporting details

Related issues

@github-actions github-actions bot added data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed labels Oct 23, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@miketaylr
Copy link

From looking at https://www.chromium.org/updates/ua-reduction/#applicable-platforms, it looks like Android WebView should be false

That's correct, but we're trying to ship it in the future.

Another question for Mike: For all of these data points, I used https://wicg.github.io/ua-client-hints/#user-agent as the spec_url. Are there better spec URLs we can point to for these individual features?

I'd use https://compat.spec.whatwg.org/#ua-string-section

@chrisdavidmills
Copy link
Contributor Author

From looking at https://www.chromium.org/updates/ua-reduction/#applicable-platforms, it looks like Android WebView should be false

That's correct, but we're trying to ship it in the future.

This is fine. We can follow up with another PR when it ships.

Another question for Mike: For all of these data points, I used https://wicg.github.io/ua-client-hints/#user-agent as the spec_url. Are there better spec URLs we can point to for these individual features?

I'd use https://compat.spec.whatwg.org/#ua-string-section

Great, thanks. I've updated it in the latest commit.

Copy link

@miketaylr miketaylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-owner LGTM

Comment on lines +328 to +330
"User-Agent_reduction": {
"__compat": {
"description": "Provides limited information due to [User-agent](https://developer.mozilla.org/docs/Web/HTTP/Guides/User-agent_reduction) reduction.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's my suggestion, but before applying, I'd like to get a second opinion by @ddbeck, who might have a better idea.

Suggested change
"User-Agent_reduction": {
"__compat": {
"description": "Provides limited information due to [User-agent](https://developer.mozilla.org/docs/Web/HTTP/Guides/User-agent_reduction) reduction.",
"applies_UA_reduction": {
"__compat": {
"description": "Applies [User-agent reduction](https://developer.mozilla.org/docs/Web/HTTP/Guides/User-agent_reduction)",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, this sounds good to me.

@caugner caugner changed the title Add User-Agent reduction data points to relevant features Chrome 110 applies User-Agent reduction to Navigator properties + User-Agent header Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants