Lurker News

Comments (206) 60 threads

Show all comments

Showing thread 1 of 60

MichaelGG6 replies#
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.

daurnimator3 replies#
There are some really cool uses of webrtc data channels. e.g. https://webtorrent.io/
msravi2 replies#
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!
SquareWheel4 replies#
Simply visiting a link downloads dozens, sometimes hundreds of files without your explicit permissions. It simply uses a different protocol.

Continue this thread — 4 replies

Too5 replies#
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?

Continue this thread — 5 replies

lohengramm#
To know that arbitrary netcode can run silently on the background of my browser is really surprising. And not in a good way.
lttlrck1 reply#
Is the wink because of the 502?

Continue this thread — 1 reply

noonat1 reply#
Multiplayer gaming is a legitimate use of data channels, but I don't see why it couldn't prompt for permission.
MichaelGG1 reply#
WebRTC folks insist prompts will confuse people and be bad. But ignoring explicit networking settings is good, somehow.
deepnet#
Acceptable default but one should be able to enable prompts as a less-confused user.
ozim4 replies#
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"
notalaser#
More likely, battery detection is just a little broken, like most of the supercharged, application delivery platform, content-powered Web 2.0.
i336_#
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

pmalynin1 reply#
Works quite well on my phone.
ozim1 reply#
Oh so it works on mobile phones then, not laptops.

Continue this thread — 1 reply

rndstr#
It was spot on for my phone at 85% and charging
throwaway415971 reply#
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.

Dylan168071 reply#
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.

throwaway41597#
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).

haddr#
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...