6 ms·
It really bothers me that all this information is available through JS (no, please don't suggest I disable it). Why does a website need to know the list of ins
by kelnos 7y ago
It really bothers me that all this information is available through JS (no, please don't suggest I disable it). Why does a website need to know the list of installed fonts? Why can they enumerate the list of "videoinput" and "audioinput" devices before they've asked for video/microphone permission? Why is information about how I've set various permissions (prompt vs. allow vs. deny) available? Exposing the visibility of menu/tool/personal/status bar is just weird (though for me all of them say "Visible", which isn't the case, so I guess Firefox is lying).
- cperciva 7y agoI can't speak to the rest, but the list of installed fonts is presumably so that websites can decide whether to download a font or to pick from the options already available.
- marcosdumay 7y agoIn CSS you list the fonts you want, and the browser will decide if it downloads them or not. There is simply no reason JS shouldn't do the same.
- cperciva 7y agoIt's easy to specify a font in CSS and then watch to see if the browser downloads it or not. JS isn't revealing anything which you can't already trivially get.
- marcosdumay 7y agoFor a start, you have to specify it. If I have some weird font installed, you don't get to know it for free. Anyway, if the site had to ask for the fonts, it would be viable for the browsers to impose some sane limitations on their API.
- mnm1 7y agoI have JS turned off and still have plenty of other factors that make me unique so it's not just JS. My question is why is the rest of the information available / given, especially the user agent? The other headers mostly make sense. I can see the argument to turn 'do not track' off. But user agent? I've been making websites and apps for almost a quarter century and have never even read of a good use for that outside the tracking industry, let alone seen a good use of it.
- eric_cc 7y agoHow much of the internet still functions with JavaScript turned off?
- arminiusreturns 7y agoThe best parts imho.
- jes5199 7y agodidn’t Chrome recently announce that they’re going to freeze the user-agent string?
- shakna 7y agoYes, but also expose the information through: + A new set of optional HTTP headers + A new JS API
- ClikeX 7y agoUser-agents can be used for web-servers to differentiate between bots/crawlers and actual human beings. But there could be a generic user-agent instead of the ones we have now. Note: This only matters for bots that serve to aid your website. Like search engine crawlers being given instructions what pages to ignore.
- Jamwinner 7y agoMost crawlers/bots, particularly the ones you want to be able to identify, spoof their user agent, making this mostly moot.
- icebraining 7y agoRegarding the list of fonts, they don't get that info (they could with Flash, but not JS). What they do is have a list of font names in the JS source, and they set a text element to each one, comparing the resulting size of the element to a baseline (the size when the element is set to the font "sans-serif" or "serif"). If it's different, the font is installed. Regarding the list of devices, it should be noted those IDs are site-specific, so they can't really be used for cross-site tracking, and clearing cookies also resets them (at least in Firefox). But there are discussions pointing to a consensus around disabling the enumeration before permission is granted. As in other cases, the browsers will probably have to lie to avoid breaking sites.
- cpeterso 7y agoFirefox has an undocumented about:config preference "font.system.whitelist" to specify a list of which fonts are exposed to web content (such as the default set shipped with your OS). The preference is used by the Tor browser. https://bugzilla.mozilla.org/show_bug.cgi?id=1121643 https://bugzilla.mozilla.org/show_bug.cgi?id=1121643
- rasz 7y agoOpera Presto had this enabled by default.
- oneeyedpigeon 7y ago> comparing the resulting size of the element to a baseline This is the real hole, imo. 99% of web pages should not need that kind of information. I’m close to thinking 100% shouldn’t, although I understand its need in particularly advanced applications. Maybe there should be a sandbox specifically for these very advanced JavaScript apps - nothing else should be allowed to get font metrics.
- vekker 7y agoIs it? It seems to me getting the size of an element is a pretty basic operation that a lot of scripts use.
- sundvor 7y agoOuch... Firefox Focus includes: chargingTime : Infinity level : 0.77 Yes that is indeed my phone's current battery level. And no matter if incognito Brave, Firefox Focus or Chrome browsers, I am unique to the site. Even Firefox Focus which is meant to be good for privacy by throwing the entire session each time is leaky as eg with the audio context.
- GordonS 7y agoSurely the battery level isn't particularly useful for fingerprinting, since it's going to change fairly quickly?
- jacobush 7y agoBut why the fuck should a website know how much charge my phone has?
- pbhjpbhj 7y agoIt's quite clever, that a site that uses lots of processing, or has autoplay, can limit what it does: " your battery is low, do you want to continue ". The problem is that shitheads exploit every possibility to reduce the utility of society in favour of their own profit. This is why we can't have nice things; as the aphorism goes.
- tsukurimashou 7y agoWell that is the problem with it, every shitty features like that someone can come up with something "quite clever" to do with it, in reality, all these things are being used 99% of the time for tracking. Maybe programmers and designers should start thinking the other way around: what could be pretty clever that could be used for a feature but that CANNOT be misused for tracking
- dorgo 7y agoWe are living in the best of all possible worlds. Without shitheads we would be vulnerable and wouldn't even know it.
- wodenokoto 7y agoIf you can load a font on the client, the loading can fail. If the load can fail you can catch the error. If you can catch the error you can store a list of fonts without being able to actually do an enumerate request. And it wouldn't be much of a browser if it couldn't POST data to an html endpoint. As soon as you introduce a programming environment you introduce the ability to do all sorts of things that aren't builtin. It's generally not the browser saying, here's the list of my settings, you asked for, but rather a program being executed that pokes around at all the things it can interact with to squeeze out info. But I agree, that javascript should not have access to audio device models numbers with or without permission, nor should it have any kind of access to the browsers chrome.