Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Chrome 110 applies User-Agent reduction to Navigator properties +User-Agent header#28275

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
chrisdavidmills wants to merge5 commits intomdn:main
base:main
Choose a base branch
Loading
fromchrisdavidmills:ua-reduction

Conversation

@chrisdavidmills
Copy link
Contributor

@chrisdavidmillschrisdavidmills commentedOct 23, 2025
edited
Loading

Summary

Chromium browsers supportUser-Agent reduction, which means that features such as theUser-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 usedhttps://wicg.github.io/ua-client-hints/#user-agent as thespec_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-actionsgithub-actionsbot added data:httpCompat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l[PR only] 101-1000 LoC changed labelsOct 23, 2025
@github-actions
Copy link
Contributor

github-actionsbot commentedOct 23, 2025
edited
Loading

Tip: Review these changesgrouped by change (recommended for most PRs), orgrouped by feature (for large PRs).

@miketaylr
Copy link

From looking athttps://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 usedhttps://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 usehttps://compat.spec.whatwg.org/#ua-string-section

@chrisdavidmills
Copy link
ContributorAuthor

From looking athttps://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 usedhttps://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 usehttps://compat.spec.whatwg.org/#ua-string-section

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

Copy link

@miketaylrmiketaylr 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

chrisdavidmills reacted with heart emoji
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
ContributorAuthor

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.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The corresponding docs have just been merged, so I'd like to expedite adding this data.

I like your suggestion, so for now I'm going to make this update in the places it appears. If we want to improve it further, I am happy to do so in a follow-up PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

This text is fine, but see my other comment on the whole structure of this feature:#28275 (comment)

@caugnercaugner changed the titleAdd User-Agent reduction data points to relevant featuresChrome 110 applies User-Agent reduction to Navigator properties +User-Agent headerOct 24, 2025
Comment on lines +328 to +331
"applies_UA_reduction": {
"__compat": {
"description":"Applies [User-agent reduction](https://developer.mozilla.org/docs/Web/HTTP/Guides/User-agent_reduction).",
"spec_url":"https://compat.spec.whatwg.org/#ua-string-section",
Copy link
Contributor

Choose a reason for hiding this comment

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

@Elchi3 What do you think about this behavioral subfeature?

Copy link
Contributor

Choose a reason for hiding this comment

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

You didn't ask me so FWIW, I'm -1 on this as a feature or at least one that is"standard_track": true. The linked "spec" says:

This section serves as a descriptive record of theUser-Agent patterns found in the so-called major web browsers

If it's descriptive, then it's merely documentation that does notspecify anything. The spec doesn't actually say what the vendors must or should do, just what they have done as convention. I think this is comparable to linking to an MDN page in aspec_url.

I think this would be better as a note that says exactly what's being reduced. Something along the lines of:

From version 110, the reported browser version number is always in the pattern ofX.0.0.0 whereX is the major version number.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Your logic here sounds reasonable, but downgrading this to a note troubles me a bit. I am documenting user-agent reduction and what it means to the values reported by theUser-Agent HTTP header (and associated API features). In a couple of places,like here in the user-agent reduction guide I link to the browser compat table to let people know which browsers support this.

I worry that if it is just a note, it'll be fairly easy to miss the note.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I acknowledge this concern and I agree that is a bit obscure in a note. That said, maybe a change to the docs might help? My suggestion for the docs would be to be somewhat more aggressive in saying that thecontent of a UA string is not actually standardized (even if the string's format is) and, theoretically, could change at any time. The browser tables might tell you how and when UA strings have changed, but I would hate to suggest to a developer that they could or shouldrely on that information.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fair point. Could we do both?

I'd still like UA reduction to be called out in the compat tables (and let's face it, we'll need to add another data point if a browser decides to do a U-turn, whether the info is contained in notes or separate data points).

But I also see the value in updating the doc that the data point links to, to make it clearer that the UA string content is still not standardized.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

If that means we can putstandard_track: true, then I think it is a good idea.

It would still be good to update the docs, as previously discussed.

Copy link
Contributor

Choose a reason for hiding this comment

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

I did not think editing the spec would be an option. That would be ideal!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

OK, so if@miketaylr can make that change to the spec, I don't think there is anything more for me to do here?

Choose a reason for hiding this comment

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

The relevant issue to follow iswhatwg/compat#272 - I will be at TPAC next week and will aim to make edits to resolve. Feel free to merge this on faith, or wait. :)

caugner reacted with heart emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

If possible, it would be nice if the spec update could explicitly introduce the term "User-Agent reduction" with a specific identifier to which BCD could link instead of the more generalThe User-Agent String section.

@caugnercaugner added the blockedBlocked and unable to proceed. labelNov 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ddbeckddbeckddbeck left review comments

@caugnercaugnercaugner left review comments

+1 more reviewer

@miketaylrmiketaylrmiketaylr approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

blockedBlocked and unable to proceed.data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIdata:httpCompat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTPsize:l[PR only] 101-1000 LoC changed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@chrisdavidmills@miketaylr@ddbeck@caugner

[8]ページ先頭

©2009-2025 Movatter.jp