by joan_kode · 6y ago · 0 comments
background: Background;
on an element, and then changing my Windows desktop background. The element immediately changes color to match my desktop. Then if I call getComputedStyle on the element, I get my desktop background color in javascript. This is in Firefox private mode, and apparently every website can read all my system colors. Why in the world is this enabled by default?https://www.w3.org/wiki/CSS/Properties/color/keywords#System...
User Agent String (being fixed soon by the Chrome team)
HTTP_ACCEPT headers
Browser plugin metadata
Time zone
System fonts
Supercookies
Canvas and WebGL fingerprinting
AudioContext
Device CPU and memory
What's one more bit of information?
If it's the OS default, it's probably worthless. But if it isn't, I would imagine it could be quite unique, no? Presuming it's an RGB color, that's 16M possibilities. And there are multiple system colors, meaning even more chance you're a snowflake if you customized them. If you chose a random color on just 2 of them, that's probably enough to make you unique among the entire world. (But it is, of course, likely that you might choose something common, like #ff00ff.)
If you turn of JavaScript, that's also probably a pretty good signal, no? (I'm just hearing someone shouting "There are dozens of us! Dozens!")
ive not really thought about (or even know to be honest) what my desktop background color is these days. its not something ive throught about since windows 95. once XP came along with that pretty background I think i've used a photo ever since
but oh well 1 more bit is one more bit for the people that do still set a background
None changed - I changed my system highlight on MacOS and desktop background on both, and had no changes here.
I don’t have a Linux or Windows machine around to test with.