Re: [battery] Mitigating potential privacy-invasive usage

Limiting access to the API (to a secure context of a top-level 
document) is good. Prompting the user for permission is another 
option, though I don't think most users can make an informed decision 
about allowing access to the battery status.

Identifying the use cases for the battery API would help show where 
the API is exposing more information than necessary. For example, is 
`chargingTime` useful for a web app that would like to be polite when 
the battery is low? IIUC, the API was originally designed to implement
 the status bar and system settings app in Firefox OS, which is a 
different use case.

-- 
GitHub Notification of comment by cpeterso
Please view or discuss this issue at 
https://github.com/w3c/battery/issues/5#issuecomment-257617533 using 
your GitHub account

Received on Tuesday, 1 November 2016 16:38:25 UTC