w3c / deviceorientation

W3C Device Orientation spec
https://www.w3.org/TR/orientation-event/
Other
49 stars 32 forks source link

Make requestPermission()'s behavior more backwards-compatible #129

Closed rakuco closed 6 months ago

rakuco commented 6 months ago

The changes added in #123 have introduced some behavior changes to the two requestPermission() operations that were not originally intended.

Although the original steps were heavily modeled after the WebKit implementation and do not follow what other specifications normally do, some behavior changes from #123 have not been discussed and have been made more backwards-compatible:

While here, refer to the right definitions of "granted" and "denied": use the PermissionState enum definitions, which is what the Permissions API algorithms we invoke return, rather than the non-Web IDL definitions that these enum values correspond to.


Preview | Diff