RE: [battery] getBattery() vs. requestBattery() pattern

> The Battery Status API doesn't require user permission to access the battery:  https://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html#security-and-privacy-considerations   

Right; in general we are pretty much done with infobar-style permission asks, as a platform. But we can still use the requestAccessToX().then(gotAccess, didntGetAccess) style even if getting access is not done as the result of an infobar. Perhaps you get access if you declare the need in a manifest, or if you're transported over HTTPS, or you get it by default but the user can toggle it off on a per-webpage basis. The user-facing API can still be uniform.

Received on Tuesday, 1 July 2014 21:23:55 UTC