HTML5: Access Battery status through javascript
smartjava.org
HTML5: Access Battery status through javascript
1–10 of 13 posts
Re: HTML5: Access Battery status through javascript
#2Worked perfectly on my laptop, in Firefox 13.
Re: HTML5: Access Battery status through javascript
#3Re: HTML5: Access Battery status through javascript
#4Using Firefox 16.0a1 (2012-06-07) on OS X it's telling me my battery is at 100% and charging, while it's at 95% and not charging.
Re: HTML5: Access Battery status through javascript
#5Re: HTML5: Access Battery status through javascript
#6Re: HTML5: Access Battery status through javascript
#7Someone clever could use this misfeature (what amounts to a data leak) to perform a sort of traffic analysis attack and infer data about your sleeping/working/browsing schedule, and then potentially interpolate travel patterns, business associations, and maybe even correlate to a precise (historical) physical location.
The security implications here are vast (and not immediately obvious), and there is a vanishingly small practical use case for this.
Why does this exist?
"can" != "should", for fuck's sake.
Re: HTML5: Access Battery status through javascript
#8Using Firefox 16.0a1 (2012-06-07) on OS X it's telling me my battery is at 100% and charging, while it's at 95% and not charging.
From the article "And it doesn't work yet on Mac (does work on iOS, Android and windows)."
Re: HTML5: Access Battery status through javascript
#9I haven't tested it, but the post claims that this works on iOS, and I've never seen a preference option to disable this. Someone clever could use this misfeature (what amounts to a data leak) to perform a sort of traffic analysis attack and infer data about your sleeping/working/browsing schedule, and then potentially interpolate travel patterns, business associations, and maybe even correlate to a precise (historic…
Given the other things available to a dev wanting to know about a user's behavior, battery status is a strange one to rant about.
> The security implications are vast.
No they're not. Battery status has been available to every app on your laptop for years without a problem. Web pages are ad hoc apps. If you're concerned, don't install the app, and use NoScript with a whitelist for browsing.
Re: HTML5: Access Battery status through javascript
#10I haven't tested it, but the post claims that this works on iOS, and I've never seen a preference option to disable this. Someone clever could use this misfeature (what amounts to a data leak) to perform a sort of traffic analysis attack and infer data about your sleeping/working/browsing schedule, and then potentially interpolate travel patterns, business associations, and maybe even correlate to a precise (historic…