Device orientation's permission should only require a user gesture to prompt the user. If the user already made a decision, we should resolve the promise with this decision, even without user gesture. This is useful for JS to figure out if they are access to device orientation or not because showing UI for the user to give permission.
Created attachment 364612 [details] Patch
Comment on attachment 364612 [details] Patch ping review? This is blocking my next patch.
Comment on attachment 364612 [details] Patch r=me
Comment on attachment 364612 [details] Patch Clearing flags on attachment: 364612 Committed r242951: <https://trac.webkit.org/changeset/242951>
All reviewed patches have been landed. Closing bug.
<rdar://problem/48895657>