logoalt Hacker News

_boffin_ • yesterday at 9:51 PM • 6 replies • view on HN

> Safari prevents websites from detecting when Adaptive Dark Mode has been applied. JavaScript that queries CSS colors will get the original authored colors, not the transformed ones. Any images drawn into canvas render in their original form.

So… the browser is now intentionally lying now. Ain’t that great.


Replies

mirashii • yesterday at 9:56 PM

Browsers already intentionally lie all the time, and have had to for years, because fingerprinting and tracking by various ad networks and bad actors has been rampant.

mortenjorck • yesterday at 9:55 PM

This is more or less unavoidable to avoid breaking poorly-architected front-ends that rely on styling to handle logic.

kccqzy • yesterday at 9:58 PM

Browsers lie all the time. Browsers also prevent sites from getting the color of a link because visited links can be shown in a different color and this can be used by the site to tell if a user has ever visited a link.

Don’t you love it when browsers lie to websites to enhance the user’s privacy.

morsch • yesterday at 9:57 PM

It's the user's agent

neilalexander • yesterday at 9:56 PM

One less thing to fingerprint.

kvuj • yesterday at 9:54 PM

> So… the browser is now intentionally lying now. Ain’t that great.

To the server. I'm 100% behind this. The unholy amount of control websites have over our web browser should go down, not up.

➕ show 1 reply