From 616daf640bcaa18b624e4f63af81df5bb882cb5e Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Sat, 17 Feb 2024 12:25:01 +0100 Subject: [PATCH] Request sensor access: Access "sensor permission names" correctly (#481) The "sensor permission names" definition is associated with a sensor type, not a platform sensor. Related to: #463. --- index.bs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 4f81200..18d36d6 100644 --- a/index.bs +++ b/index.bs @@ -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"