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

Support Sec-CH-UA-Form-Factor #1119

Closed
nielsbasjes opened this issue Jul 26, 2023 · 2 comments
Closed

Support Sec-CH-UA-Form-Factor #1119

nielsbasjes opened this issue Jul 26, 2023 · 2 comments

Comments

@nielsbasjes
Copy link
Owner

This website https://github.com/WICG/ua-client-hints mentions:

The Sec-CH-UA-Form-Factor header field represents the form-factor of a device, historically represented as a <deviceCompat> token in the User-Agent string (e.g., "Tablet", "VR", etc.)

For example:

Sec-CH-UA-Form-Factor: "XR"

https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor

3.4. The 'Sec-CH-UA-Form-Factor' Header Field
The Sec-CH-UA-Form-Factor request header field gives a server information about the user agent's form-factor. It is a Structured Header whose value MUST be a string. Its value SHOULD match one of the following common form-factor values: "Automotive", "Mobile", "Tablet", "TV", "VR", "XR", "Unknown" or the empty string. [RFC8941].

NOTE: A "desktop" form-factor would be represented by the empty string.

The header’s ABNF is:

Sec-CH-UA-Form-Factor = sf-string

@nielsbasjes
Copy link
Owner Author

Initial changes https://github.com/nielsbasjes/yauaa/tree/SecChUaFormFactor

Currently some of the values are unclear to me.

See also WICG/ua-client-hints#333

@nielsbasjes
Copy link
Owner Author

The field is supported.
Because there are no browsers yet that have it there are no rules yet that can do anything with it.

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

No branches or pull requests

1 participant