Skip to content

Commit b6ab53f

Browse files
Manishearthtoji
authored andcommitted
set of enabled features -> set of granted features
1 parent 502defe commit b6ab53f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ An <dfn for="">XR device</dfn> is a physical unit of hardware that can present i
232232

233233
An [=/XR device=] has a <dfn>list of supported modes</dfn> (a [=/list=] of [=/strings=]) that [=list/contains=] the enumeration values of {{XRSessionMode}} that the [=/XR device=] supports.
234234

235-
Each [=/XR device=] has a <dfn for="XR device">set of enabled features</dfn> for each {{XRSessionMode}} in its [=list of supported modes=], which is a [=/set=] of [=feature descriptors=] which MUST be initially an empty [=/set=].
235+
Each [=/XR device=] has a <dfn for="XR device">set of granted features</dfn> for each {{XRSessionMode}} in its [=list of supported modes=], which is a [=/set=] of [=feature descriptors=] which MUST be initially an empty [=/set=].
236236

237237
The user-agent has a <dfn for="">list of immersive XR devices</dfn> (a [=/list=] of [=/XR device=]), which MUST be initially an empty [=/list=].
238238

@@ -2765,7 +2765,7 @@ To <dfn lt="request the xr permission">request the "xr" permission</dfn> with an
27652765
1. If a clear signal of [=user intent=] to enable |feature| has not been determined, continue to the next entry.
27662766
1. If |feature| is not in |granted|, append |feature| to |granted|.
27672767
1. Set |status|'s {{XRPermissionStatus/granted}} to |granted|.
2768-
1. Add all elements of |granted| to |device|'s [=set of enabled features=] for |mode|.
2768+
1. Add all elements of |granted| to |device|'s [=set of granted features=] for |mode|.
27692769
1. Set |status|'s {{PermissionStatus/state}} to {{PermissionState/"granted"}}.
27702770

27712771
Note: The user agent has the freedom to batch up permissions prompts for all requested features when gauging if there is a clear signal of [=user intent=], but it is also allowed to show them one at a time.
@@ -2805,7 +2805,7 @@ To <dfn>resolve the requested features</dfn> given |requiredFeatures| and |optio
28052805
1. Let |consentOptional| be an empty [=/list=] of {{DOMString}}.
28062806
1. Let |granted| be an empty [=/list=] of {{DOMString}}.
28072807
1. Let |device| be the result of [=obtain the current device|obtaining the current device=] for |mode|, |requiredFeatures|, and |optionalFeatures|.
2808-
1. Let |previouslyEnabled| be |device|'s [=XR device/set of enabled features=] for |mode|.
2808+
1. Let |previouslyEnabled| be |device|'s [=XR device/set of granted features=] for |mode|.
28092809
1. If |device| is `null` or |device|'s [=list of supported modes=] does not [=list/contain=] |mode|, run the following steps:
28102810
1. Return the [=tuple=] (|consentRequired|, |consentOptional|, |granted|)
28112811
1. Add every [=feature descriptor=] in the [=default features=] table associated with |mode| to |granted| if it is not already present.

0 commit comments

Comments
 (0)