Re: [battery] Allow use from within secure context and top-level browsing context only

Rejecting with a `SecurityError` seems to be a common pattern, so we should consider it.

Since existing web content using the API may not handle rejected promise (because it was not expected), it'd be a backwards incompatible change.

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

Received on Thursday, 16 March 2017 10:08:34 UTC