On Fri, Sep 22, 2017 at 4:50 PM, Ehsan Akhgari <ehsan.akhg...@gmail.com> wrote:
> We discussed this a bit with Anne on IRC.  It seems like this API is a good
> use case for a permission prompt to the user.  Since the API works by
> registering an event listener, the only realistic option seems to be
> Permission.request() before registering the event listeners.  Unfortunately
> it seems that a while ago we have pushed back on this API
> <https://github.com/w3c/permissions/issues/83>, but it seems that this use
> case wasn't considered back then.  Anne said he'll look into opening up that
> discussion again to see if we can use a permission prompt for this API...

I filed https://github.com/w3c/permissions/issues/158 for a simplified
version of the API and pinged Jeffrey Yasskin from Google about it on
IRC. Another alternative we could pursue is add something dedicated
for orientation/motion somewhere; perhaps on the navigator dumping
grounds. But it would be good if we could get orientation/motion
events maintained somehow then so this can just be put in that
document.


-- 
https://annevankesteren.nl/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to