Skip to content

Commit

Permalink
editorial: Use permissions and permissions-policy dfn's from DEVICE-O…
Browse files Browse the repository at this point in the history
…RIENTATION (#59)

Adapt to w3c/deviceorientation#121 and w3c/deviceorientation#123.

Those two PRs have moved the definition of the "gyroscope"
permission name and permissions policy token to the Device Orientation
spec, which is more widely implemented than this specification and can
be referenced from this one.
  • Loading branch information
rakuco committed Jan 4, 2024
1 parent ccb15d7 commit f458dcb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ urlPrefix: https://w3c.github.io/accelerometer/; spec: ACCELEROMETER
text: device coordinate system
text: screen coordinate system
</pre>
<pre class=link-defaults>
spec:orientation-event; type:dfn; text:gyroscope-feature
spec:orientation-event; type:permission; text:gyroscope
</pre>

<pre class=biblio>
{
Expand Down Expand Up @@ -122,7 +126,7 @@ in the Generic Sensor API [[!GENERIC-SENSOR]].
Permissions Policy integration {#permissions-policy-integration}
==============================

This specification defines a [=policy-controlled feature=] identified by the string "<code><dfn data-lt="gyroscope-feature" export>gyroscope</dfn></code>". Its [=default allowlist=] is "`self`".
This specification utilizes the [=policy-controlled feature=] identified by the string "<code><a data-lt="gyroscope-feature">gyroscope</a></code>" defined in [[DEVICE-ORIENTATION]].

Model {#model}
=====
Expand All @@ -132,9 +136,9 @@ The <dfn id="gyroscope-sensor-type">Gyroscope</dfn> <a>sensor type</a> has the f
: [=Extension sensor interface=]
:: {{Gyroscope}}
: [=Sensor permission names=]
:: "<code><dfn permission export>gyroscope</dfn></code>"
:: "<code><a permission>gyroscope</a></code>" (defined in [[DEVICE-ORIENTATION]])
: [=Sensor feature names=]
:: "[=gyroscope-feature|gyroscope=]"
:: "[=gyroscope-feature|gyroscope=]" (defined in [[DEVICE-ORIENTATION]])
: [=powerful feature/Permission revocation algorithm=]
:: Invoke the [=generic sensor permission revocation algorithm=] with "<code><a permission>gyroscope</a></code>".
: [=Default sensor=]
Expand Down

0 comments on commit f458dcb

Please sign in to comment.