News for hackers. Stuff that matters.
Re:Show HN: 300k lines of Java UI code running native in bro... by mwcampbell on Friday April 05, 2019 @09:42AM (#19582373)
That opens a whole other can of worms. Some blind people don't want a website or web application to be able to detect that they're running a screen reader, and by extension, that they're blind. [1] I'm not sure where I stand on that issue.

[1]: https://news.ycombinator.com/item?id=19547239

Re:Show HN: 300k lines of Java UI code running native in bro... by mastazi on Friday April 05, 2019 @10:42AM (#19582995)
Media queries are instructions that the client can use, unlike other methods like user-agent there is no info being sent over to the site. Of course a malicious page could implement js code to try and understand what bersion of the page the client is actually rendering, but it would be quite easy for the client to circumvent that.
Re:Show HN: 300k lines of Java UI code running native in bro... by ago on Friday April 05, 2019 @11:59AM (#19583803)
Media queries can leak info to the server easily without JavaScript: https://matt.traudt.xyz/p/YF4ciVY6.html
Re:Show HN: 300k lines of Java UI code running native in bro... by mastazi on Friday April 05, 2019 @07:19PM (#19587964)
For a client that did not want to send info, this would be even easier to prevent than the JS scenario discussed above...
Re:Show HN: 300k lines of Java UI code running native in bro... by anoncake on Saturday April 06, 2019 @08:53AM (#19590472)
Especially for a screen reader: It can fetch all images intended for seeing people anyway while ignoring images intended for screen readers.
Re:Show HN: 300k lines of Java UI code running native in bro... by anoncake on Friday April 05, 2019 @12:01PM (#19583823)
I bet there already is a way to detect that.