w3c / deviceorientation

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

Replace same-origin Security & Privacy requirement with Permissions Policy one #136

Closed rakuco closed 8 months ago

rakuco commented 8 months ago

This addresses a conflict that was introduced in #121:

The latter was introduced in #25 and served as a stop-gap measure before Permissions Policy integration was added.

The current implementation status is:

This means we can safely replace the same-origin requirement with a requirement to support the Permissions Policy integration, as switching from one to the other is transparent in the sense that the exact same set of websites that worked before will continue to work with the change, as the features we define have a default allowlist of "self".

Fixes #133


Preview | Diff

anssiko commented 8 months ago

Does this suggest changes to https://www.w3.org/TR/orientation-event/#changes

If yes, please submit a PR to add one more bullet.

rakuco commented 8 months ago

Does this suggest changes to https://www.w3.org/TR/orientation-event/#changes

If yes, please submit a PR to add one more bullet.

Done in #138