News for hackers. Stuff that matters.
Re:A Privacy Analysis of the HTML5 Battery Status API [pdf] by nilliams on Tuesday July 07, 2015 @08:06AM (#9844884)
You wouldn't necessarily.

Main use-case I believe was FirefoxOS -- at least the first time I heard it mentioned was during an FirefoxOS talk where they discussed other hardware-y APIs and trying to get them standardised.

It would also be useful for an OS that supported HTML5 native apps. Additionally having a standard API gives projects like Phonegap an API to 'target' when exposing native device APIs to JavaScript.

Re:A Privacy Analysis of the HTML5 Battery Status API [pdf] by smackfu on Tuesday July 07, 2015 @10:26AM (#9845620)
Yeah, this was part of WebAPI back in 2012, and that has a lot more hardware APIs:

https://wiki.mozilla.org/WebAPI