Re: [deviceorientation] Add API for requesting permission to receive device motion / orientation events (#57)

@nbutko This is a good point. My proposal would be:
1. The page calls requestPermission() without user gesture.
2.a. If it is rejected, then you do not have permission and you need to request again with a user gesture
2.b. If it gets resolved with 'granted', then you already have permission
3.b. If it gets resolved with 'denied', then the user has already denied access in the past.

If this is acceptable, I would need to clarify the spec text and update the WebKit implementation accordingly.

-- 
GitHub Notification of comment by cdumez
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/57#issuecomment-472625096 using your GitHub account

Received on Wednesday, 13 March 2019 22:07:58 UTC