@@ -1145,6 +1145,13 @@ It represents a [=reading timestamp=].
1145
1145
return.
1146
1146
1. Set [=this=] .{{[[state]]}} to "activating".
1147
1147
1. Run these sub-steps [=in parallel=] :
1148
+ 1. Let |permissionState| be the result of invoking
1149
+ [=request sensor access=] with [=this=] as argument.
1150
+ 1. If |permissionState| is "denied", then:
1151
+ 1. Let |e| be the result of [=created|creating=]
1152
+ a "{{NotAllowedError!!exception}} " {{DOMException}} .
1153
+ 1. Queue a task to run [=notify error=] with [=this=] and |e| as arguments.
1154
+ 1. Return.
1148
1155
1. Let |connected| be the result of invoking [=connect to sensor=] with [=this=]
1149
1156
as argument.
1150
1157
1. If |connected| is false, then
@@ -1162,14 +1169,7 @@ It represents a [=reading timestamp=].
1162
1169
but it is a tradeoff some User Agent might choose to make. -->
1163
1170
1. Queue a task to run [=notify error=] with [=this=] and |e| as arguments.
1164
1171
1. Return.
1165
- 1. Let |permission_state| be the result of invoking
1166
- [=request sensor access=] with [=this=] as argument.
1167
- 1. If |permission_state| is "granted",
1168
- 1. Invoke [=activate a sensor object=] with [=this=] as argument.
1169
- 1. Otherwise, if |permission_state| is "denied",
1170
- 1. Let |e| be the result of [=created|creating=]
1171
- a "{{NotAllowedError!!exception}} " {{DOMException}} .
1172
- 1. Queue a task to run [=notify error=] with [=this=] and |e| as arguments.
1172
+ 1. Invoke [=activate a sensor object=] with [=this=] as argument.
1173
1173
</div>
1174
1174
1175
1175
0 commit comments