Skip to content

Commit

Permalink
Request sensor access: Access "sensor permission names" correctly (#481)
Browse files Browse the repository at this point in the history
The "sensor permission names" definition is associated with a sensor type,
not a platform sensor.

Related to: #463.
  • Loading branch information
rakuco committed Feb 17, 2024
1 parent 0a4fd13 commit 616daf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1556,9 +1556,8 @@ to {{SensorErrorEventInit}}.
: output
:: A [=permission state=].

1. Let |sensor| be the [=platform sensor=] associated with |sensor_instance|.
1. Let |sensor_permissions| be |sensor|'s associated [=ordered set|set=] of
[=sensor permission names|permission names=].
1. Let |sensor_type| be |sensor_instance|'s associated [=sensor type=].
1. Let |sensor_permissions| be |sensor_type|'s associated [=sensor permission names=].
1. [=set/For each=] |permission_name| in |sensor_permissions|,
1. Let |state| be the result of [=request permission to use|requesting permission to use=] |permission_name|.
1. If |state| is "denied"
Expand Down

0 comments on commit 616daf6

Please sign in to comment.