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

Presently in getBattery(), there is a note that 
**The user agent must not reject the battery promise.**

We can fix this by rejecting the promise with "SecurityError" DOMException, if the incumbent settings object is not a secure context or a top-level browsing context.


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

Received on Thursday, 16 March 2017 09:48:53 UTC