Skip to content

Commit

Permalink
Define and export "magnetometer" permission
Browse files Browse the repository at this point in the history
This is similar to w3c/accelerometer#67: with this we can eventually link to
the permission name from https://w3c.github.io/permissions-registry/
  • Loading branch information
rakuco committed Oct 24, 2023
1 parent 7e72aff commit 746e6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ The <dfn id="magnetometer-sensor-type">Magnetometer</dfn> <a>sensor type</a> has
: [=Extension sensor interface=]
:: {{Magnetometer}}
: [=Sensor permission names=]
:: "`magnetometer`"
:: "<code><dfn permission export>magnetometer</dfn></code>"
: [=Sensor feature names=]
:: "[=magnetometer-feature|magnetometer=]"
: [=powerful feature/Permission revocation algorithm=]
:: Invoke the [=generic sensor permission revocation algorithm=] with "`magnetometer`".
:: Invoke the [=generic sensor permission revocation algorithm=] with "<code><a permission>magnetometer</a></code>".

The [=latest reading=] for a {{Sensor}} whose [=sensor type=] is [=Magnetometer=] must include:
- Three [=map/entries=] whose [=map/keys=] are "x", "y", "z" and whose [=map/values=] contain <a>magnetic field</a> about the corresponding axes.
Expand Down

0 comments on commit 746e6c9

Please sign in to comment.