Skip to content

Commit

Permalink
Generic Sensor permission revocation algorithm: skip idle sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kubo da Costa committed Aug 1, 2023
1 parent 8a13968 commit 2096921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ to {{SensorErrorEventInit}}.
:: None

1. For each {{Sensor}} instance |sensor| in the [=current realm=]:
1. If |sensor|.{{[[state]]}} is "idle", then [=continue=].
1. If |sensor|'s associated [=platform sensor=]'s [=sensor type=]'s [=sensor permission
names=] [=set/contains=] |permissionName|:
1. Invoke [=deactivate a sensor object=] with |sensor|.
Expand Down

0 comments on commit 2096921

Please sign in to comment.