News for hackers. Stuff that matters.
Re:Show HN: What every browser knows about you by MichaelGG on Friday April 01, 2016 @07:50PM (#11409413)
Not sure why battery is exposed; I guess that's the result of making browsers more like OSes.

The only really annoying thing is the idiotic WebRTC settings. Their love for "data channels" with zero prompts, despite having no legitimate uses[1], ignores your proxy settings. This should be fixed.

1: I asked someone involved with WebRTC. They suggested "maybe a page wants to communicate with your fridge directly" as a serious use of WebRTC data channels.

Re:Show HN: What every browser knows about you by daurnimator on Friday April 01, 2016 @09:10PM (#11409724)
There are some really cool uses of webrtc data channels. e.g. https://webtorrent.io/
Re:Show HN: What every browser knows about you by msravi on Friday April 01, 2016 @10:13PM (#11409896)
Yeah, and that's also a great example of what should NOT be allowed without the user's EXPLICIT permission - simply visiting a link should not result in a torrent download!
Re:Show HN: What every browser knows about you by SquareWheel on Saturday April 02, 2016 @01:16AM (#11410344)
Simply visiting a link downloads dozens, sometimes hundreds of files without your explicit permissions. It simply uses a different protocol.
Re:Show HN: What every browser knows about you by MichaelGG on Saturday April 02, 2016 @01:29AM (#11410375)
No, it doesn't just use a different protocol. It ignores your network settings (proxy) and exposes your local network information.

I can understand not wanting to scare people with "Allow P2P Data Channel", but ignoring proxy settings and revealing all IPs is unacceptable. WebRTC folks toss off these concerns with "there's no way to prevent tracking so heh".

Re:Show HN: What every browser knows about you by Dylan16807 on Saturday April 02, 2016 @09:53AM (#11411512)
It's bad that it ignores network settings.

But that's orthogonal to whether it's torrenting. You can torrent while respecting network settings, and without exposing local IPs.

Re:Show HN: What every browser knows about you by axelfreeman on Saturday April 02, 2016 @04:37AM (#11410756)
Visiting a link exposes also a lot on default. Browser, OS, Resolution. The major browsers are not build for this needs. Best experience first. BTW: There are extensions to block webrtc ip leak.
Re:Show HN: What every browser knows about you by pdkl95 on Saturday April 02, 2016 @05:49AM (#11410922)
> Visiting a link exposes also a lot on default.

We should be reducing the amount of data exposed and fixing the mistakes of the past that allowed so much data to be easily exfiltrated.

> Best experience first.

"Best" is not a defined term. What software developers should (always) be providing is the safest method first. Fancy UI tricks are a far lower priority than safety. If there is any doubt, fail safely.

Anybody that isn't putting safety first is being incredibly irresponsible. Stop leaking data and design for safety and security first. Yes, this it will be harder to make a nice user experience. In time, this will improve, but in the meantime safety is not something that can simply be ignored.

> extensions

Safety is not an optional feature that only some people should have.

Re:Show HN: What every browser knows about you by Too on Saturday April 02, 2016 @01:21AM (#11410354)
Simply visiting a YouTube link should result in the video to start streaming right away though?

How will you know that a download is desired or not?

Re:Show HN: What every browser knows about you by Rangi42 on Saturday April 02, 2016 @01:30AM (#11410378)
<video> tags are a more standardized part of the web. Although I should be able to disable auto-buffering as well as auto-play.

Ideally the user can control whether all types of content get loaded—images, CSS, JavaScript, web fonts—or even allow/deny individual domains or files, but so far browsers require an extension like uMatrix for that.

Re:Show HN: What every browser knows about you by Jach on Saturday April 02, 2016 @06:06AM (#11410958)
The fact that some browsers do allow you to control these things, even if you have to use an extension because they don't support it themselves, is crucially important and totally acceptable. AFAIK there is nothing equivalent to NoScript for IE, however, so that's just one of many reasons I don't use it.

I don't really mind the trend in browsers over the last several years to give explicit access to more OS resources, it frees us from both Flash and Java Applets, Adobe's PDF reader, and other crap. But I'm not sure the browser replacements, at least in the short term, will actually get the security models any better. Is there any reason to prefer all these new JS APIs over allowing a Java Applet, besides "Java Applets are insecure"? It's certainly not performance -- I know many people chuckle when someone demos the latest X in JS (with or without WebGL) where X was done better with less hardware years ago via an applet. Secure or not, it's incredibly difficult to actually run an applet these days, and it's a strange disconnect with how the browser is fine doing so much else without warning. Will we see a similar increase in difficulty for running JS that can be just as insecure?

I've been a NoScript and adblock advocate for many years, but the first is often met with alien stares and the second is only successful when I install it on their browser myself or when I'm recommending adblocking to either other technical people or people who really hate ads even on TV. There's a weird resistance some people have that can get brought up in both cases, though, and it's probably going to take more than a few big public fails due to malicious websites before people will stop bringing it up. The argument adblocking users have been making for ages: this is my computer, my browser, and neither is under any obligation to act in a particular way based on the contents of what your server sends me. I don't like your ads? I can choose not to see them. I don't trust your JS? I can choose not to execute it. I don't like your theme? I can load my own. It's very weird to me that people oppose this view.

Re:Show HN: What every browser knows about you by MacAsm on Saturday April 02, 2016 @05:16PM (#11413492)
Do you use NoScript in everyday? I think while it would make those annoying APIs go away, the web site experience would became a bit poor and even not work properly.
Re:Show HN: What every browser knows about you by okket on Saturday April 02, 2016 @06:36AM (#11411016)
> Simply visiting a YouTube link should result in the video to start streaming right away though?

I hate that. Is there a reliable way to turn that behavior off?

Re:Show HN: What every browser knows about you by hewhowhineth on Saturday April 02, 2016 @02:58PM (#11412778)
If you're Firefox user go to 'about:config' and set 'media.autoplay.enabled' to false
Re:Show HN: What every browser knows about you by lohengramm on Friday April 01, 2016 @10:33PM (#11409962)
To know that arbitrary netcode can run silently on the background of my browser is really surprising. And not in a good way.
Re:Show HN: What every browser knows about you by Capira on Friday April 01, 2016 @11:54PM (#11410142)
https://snapdrop.net is also a cool use of webrtc ;)
Re:Show HN: What every browser knows about you by lttlrck on Saturday April 02, 2016 @02:25PM (#11412620)
Is the wink because of the 502?
Re:Show HN: What every browser knows about you by Capira on Saturday April 02, 2016 @09:04PM (#11414412)
No, it's an app of mine and up again. Thanks a lot for telling me it was down!
Re:Show HN: What every browser knows about you by noonat on Friday April 01, 2016 @09:15PM (#11409740)
Multiplayer gaming is a legitimate use of data channels, but I don't see why it couldn't prompt for permission.
Re:Show HN: What every browser knows about you by MichaelGG on Friday April 01, 2016 @10:04PM (#11409875)
WebRTC folks insist prompts will confuse people and be bad. But ignoring explicit networking settings is good, somehow.
Re:Show HN: What every browser knows about you by deepnet on Saturday April 02, 2016 @05:05AM (#11410829)
Acceptable default but one should be able to enable prompts as a less-confused user.
Re:Show HN: What every browser knows about you by haddr on Saturday April 02, 2016 @08:12AM (#11411248)
I'ts funny with WebRTC, because I rememeber when the same could be accomplish with Java applets (Java ignored any proxy settings, which allowed to deanonynimize people on the internet, e.g. it no longer mattered if you were behind TOR if you had Java enabled). I think it was considered security bug and was patched later. Seems that WebRTC people are not so security-wise I suppose...
Re:Show HN: What every browser knows about you by ozim on Saturday April 02, 2016 @03:59AM (#11410695)
I am not sure if this battery is not just FUD and some other sections as well. Because I currently have no battery in my laptop (no battery detected) and site is saying "Charging: charging", "Battery level: 100%", "Charging time: 0h"
Re:Show HN: What every browser knows about you by rndstr on Saturday April 02, 2016 @04:47AM (#11410786)
It was spot on for my phone at 85% and charging
Re:Show HN: What every browser knows about you by i336_ on Saturday April 02, 2016 @04:38AM (#11410758)
My desktop system is saying the exact same thing.

The page also thinks my system is flat on a table. Close; the screens are, while the tower's on the floor :P

Re:Show HN: What every browser knows about you by pmalynin on Saturday April 02, 2016 @04:43AM (#11410778)
Works quite well on my phone.
Re:Show HN: What every browser knows about you by ozim on Saturday April 02, 2016 @10:24AM (#11411620)
Oh so it works on mobile phones then, not laptops.
Re:Show HN: What every browser knows about you by elbear on Saturday April 02, 2016 @12:56PM (#11412210)
It made a correct reading for my laptop (Macbook).
Re:Show HN: What every browser knows about you by notalaser on Saturday April 02, 2016 @04:18AM (#11410723)
More likely, battery detection is just a little broken, like most of the supercharged, application delivery platform, content-powered Web 2.0.
Re:Show HN: What every browser knows about you by throwaway41597 on Saturday April 02, 2016 @07:01AM (#11411071)
Just like with mobile apps, battery info can help websites decide whether they should run a complex operation now. It also helps detect regressions if a commit happens to suck power faster. Unfortunately, it's more bits available to deanonymize users across websites.

Data channels are useful for synchronizing your phone and your laptop. All native platforms support this. Most websites do it with a roundtrip to the server. So it would be mysterious to the user why a permission is prompted for something that should just work. Obviously it's bad for privacy though.

So painting it as having no legitimate uses is a bit one-sided. There is no easy fix.

Re:Show HN: What every browser knows about you by Dylan16807 on Saturday April 02, 2016 @10:01AM (#11411534)
What websites do CPU-intensive work that can be delayed for hours?

In general I want a website to suck as much power as possible so it can be done sucking power as soon as possible, whether I'm on battery or not. If you want to find waste, track execution time and bandwidth use.

Re:Show HN: What every browser knows about you by throwaway41597 on Saturday April 02, 2016 @11:31AM (#11411858)
I'm not sure I understand your point. Many apps (would) benefit from delaying some tasks and waiting to be on charge and a wifi connection. Typically, synchronization for example requires the device to be awake for a long period because of network roundtrips, transfers, disk seeks and CPU work. Software updates are similarly impactful on the battery.

At least, it makes sense to measure battery usage to optimize your code. And in my opinion, it's also beneficial to react to battery events (delay when on low battery, process when on a wall socket) and network events (bad coverage vs. strong wifi).

Re:Show HN: What every browser knows about you by aembleton on Saturday April 02, 2016 @05:54AM (#11410932)
Battery levels are exposed in the Battery Status API [1] which is currently implemented on Firefox and Chrome, both desktop and Android editions [2] but not on iOS.

1. https://developer.mozilla.org/en/docs/Web/API/Battery_Status...

2. http://caniuse.com/#search=battery