From 20969219af9bb9c7ab5b1e7932321fda9b15029b Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Tue, 1 Aug 2023 13:43:26 +0200 Subject: [PATCH] Generic Sensor permission revocation algorithm: skip idle sensors --- index.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/index.bs b/index.bs index f8e1e83..bdd5b41 100644 --- a/index.bs +++ b/index.bs @@ -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|.