←back to thread

428 points coronadisaster | 2 comments | | HN request time: 1.467s | source
Show context
manishsharan ◴[] No.23676660[source]
Good. Those APIs were awful. If your website needs to know the battery status or other such information , you need to be writing an app which I will never download.
replies(3): >>23677073 #>>23677268 #>>23677424 #
pcmaffey ◴[] No.23677424[source]
What if battery status was used to triage tasks? Wait to do something intensive if you’re low, etc. Seems like a respectful enhancement.

If theses APIs are only accessible with user consent, I don’t see the problem.

replies(1): >>23677685 #
1. cstuder ◴[] No.23677685[source]
It's not easy. Mozilla ran into the privacy implications of the battery status API a couple of years ago: It was so precise that it allows the mentioned fingerprinting: https://www.schneier.com/blog/archives/2016/11/firefox_remov...

Every additional API added to the browser makes the risk of such side effects greater.

replies(1): >>23677772 #
2. lopis ◴[] No.23677772[source]
> It was so precise

Then make it less so. Browser APIs can - and do - lie to their users. For example, if you try to query the color of a visited link, you won't get the actual color, but instead you get the default link color. This is to prevent an old bug that let you basically harvest a user's browsing history.