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

User Preference Media Features Client Hints Headers #15

Open
tomayac opened this issue Jun 29, 2022 · 10 comments
Open

User Preference Media Features Client Hints Headers #15

tomayac opened this issue Jun 29, 2022 · 10 comments
Assignees
Labels
blocked Coming to a position is blocked on issues identified with the spec or proposal. from: Google Proposed, edited, or co-edited by Google. topic: client hints topic: css Spec relates to CSS (Cascading Style Sheets) topic: http Spec relates to the HTTP (Hypertext Transfer Protocol) family of protocols topic: networking topic: privacy venue: WICG Proposal is incubated in the Web Incubator Community Group

Comments

@tomayac
Copy link

tomayac commented Jun 29, 2022

Request for position on an emerging web specification

  • WebKittens who can provide input: ?

Information about the spec

Design reviews and vendor positions

Bugs tracking this feature

Anything else we need to know

This has been implemented by Google Search.

@othermaciej othermaciej added topic: http Spec relates to the HTTP (Hypertext Transfer Protocol) family of protocols topic: css Spec relates to CSS (Cascading Style Sheets) venue: WICG Proposal is incubated in the Web Incubator Community Group labels Jun 29, 2022
@hober
Copy link
Member

hober commented Jun 30, 2022

cc @johnwilander @cookiecrook

@gsnedders
Copy link
Member

See also #20 for the underlying Client Hints infra.

@gsnedders
Copy link
Member

Off-hand, this essentially just allows sites to avoid saving cookies with data from Window.matchMedia, right? As such, from a fingerprinting point-of-view (and with CHs subject to the same story policies) this doesn't provide any additional surface?

(Note I'm not considering Client Hint Reliability here, despite that being informatively (I think?) referenced in this spec; that would be another standard to have a position on!)

@othermaciej
Copy link

This potentially turns active fingerprinting surface into passive fingerprinting surface, which would be concerning, given the sensitivity of some of these properties.

@tomayac
Copy link
Author

tomayac commented Jul 1, 2022

With Sec-CH-Prefers-Color-Scheme marked as critical client hint, it can make a huge difference in user experience since it would avoid a flash of white (a common complaint), so the server can tailor the response also for the very first time before a user visits a site:

HTTP/1.1 200 OK
Content-Type: text/html
Accept-CH: Sec-CH-Prefers-Color-Scheme, Sec-CH-Prefers-Contrast
Vary: Sec-CH-Prefers-Color-Scheme
Critical-CH: Sec-CH-Prefers-Color-Scheme

@jyasskin
Copy link

FWIW, client hints in general are active fingerprinting surface, not passive, because the server has to actively turn them on by sending the Accept-CH header. There are a few rare exceptions in the UA CH spec, but this one isn't an exception.

@othermaciej othermaciej added the from: Google Proposed, edited, or co-edited by Google. label Sep 25, 2022
@cookiecrook
Copy link

cookiecrook commented Mar 3, 2023

With Sec-CH-Prefers-Color-Scheme marked as critical client hint, it can make a huge difference in user experience since it would avoid a flash of white (a common complaint), so the server can tailor the response also for the very first time before a user visits a site

Since the browser already knows the user prefers a dark color scheme, fixing this nit could be an implementation detail, couldn't it? I also believe there are ways the site author could already address the white FOUC.

@hober
Copy link
Member

hober commented Mar 29, 2023

We need to come to a position on #20 before we can come to positions on proposals that use the Client Hints infrastructure.

@hober hober added the blocked Coming to a position is blocked on issues identified with the spec or proposal. label Mar 29, 2023
@lukewarlow
Copy link
Member

lukewarlow commented Jul 25, 2023

As a heads up I'm currently prototyping adding a new user preference client hint Sec-CH-Prefers-Reduced-Transparency this as you can probably guess will reflect the prefers-reduced-transparency media feature (See #145 ).

@tomayac
Copy link
Author

tomayac commented Jul 26, 2023

As a heads up I'm currently prototyping adding a new user preference client hint Sec-CH-Prefers-Reduced-Transparency this as you can probably guess will reflect the prefers-reduced-motion media feature (See #145 ).

(I suppose you mean "will reflect prefers-reduced-transparency" based on #145.)

FYI, I have an open PR about adding Privacy Considerations. See WICG/user-preference-media-features-headers#11 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Coming to a position is blocked on issues identified with the spec or proposal. from: Google Proposed, edited, or co-edited by Google. topic: client hints topic: css Spec relates to CSS (Cascading Style Sheets) topic: http Spec relates to the HTTP (Hypertext Transfer Protocol) family of protocols topic: networking topic: privacy venue: WICG Proposal is incubated in the Web Incubator Community Group
Projects
Development

No branches or pull requests

8 participants