Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue for user-agent string/etc. upstreaming into HTML / Fetch #168

Open
domenic opened this issue Feb 1, 2022 · 2 comments
Open

Comments

@domenic
Copy link
Member

domenic commented Feb 1, 2022

The work in https://compat.spec.whatwg.org/#ua-string-section is very exciting.

I think the Compat Standard is the right place for this kind of work to happen in the near- and medium-term. But IMO in the long-term, if things settle down into a cross-browser equilibrium, we should migrate much of this into HTML (specifically the section on the various navigator properties) and Fetch (to give more guidance on the default User-Agent value).

For example, it would be good to normatively specify in HTML the relationship between navigator.userAgent, navigator.appVersion, and navigator.platform. Today I learned from https://www.chromium.org/updates/ua-reduction/ that appVersion is "everything after the Mozilla/" in userAgent, which is not captured in any spec today. Similarly, I assume there is some relationship between platform and the <oscpu> and/or <platform> tokens in the Compat Standard?

I'm unsure whether we'd want to go further and move the stuff about specific browsers and platforms from into HTML, or leave that in Compat.

@miketaylr
Copy link
Member

Thanks for filing! Yes, agree that ideally this work ends up elsewhere (both Fetch and HTML make sense) once we clean it up sufficiently.

@domenic
Copy link
Member Author

domenic commented Feb 1, 2022

We could also probably say something useful about the crossover with the navigator compatibility mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants