Skip to content

Commit 47a242b

Browse files
authored
Fix Session ended and UUID RFC link errors (#86)
1 parent cc161a2 commit 47a242b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

index.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ spec: WebXR Device API - Level 1; urlPrefix: https://www.w3.org/TR/webxr/#
3030
type: dfn; text: session; url: dom-xrframe-session
3131
type: dfn; text: time; url: xrframe-time
3232
for: XRSession;
33+
type: attribute; text: ended; url: xrsession-ended
3334
type: dfn; text: list of frame updates; url: xrsession-list-of-frame-updates
3435
type: dfn; text: mode; url: xrsession-mode
3536
type: dfn; text: XR device; url: xrsession-xr-device
@@ -184,7 +185,7 @@ The {{XRAnchor/requestPersistentHandle()}} method, when invoked on an {{XRAnchor
184185
1. Return |promise|.
185186
1. Abort these steps.
186187
1. Let |uuid| be the empty string.
187-
1. Generate a UUID [[!RFC4122]] as a string and append it to |uuid|.
188+
1. Generate a UUID [[!RFC9562]] as a string and append it to |uuid|.
188189
1. Add |uuid| and |anchor| to |session|'s [=XRSession/map of persistent anchors=].
189190
1. [=/Resolve=] |promise| with |uuid|.
190191
1. Return |promise|.
@@ -255,7 +256,7 @@ Note: It is the responsibility of user agents to ensure that the physical origin
255256
The {{XRSession/restorePersistentAnchor(uuid)}} method, when invoked on an {{XRSession}} |session| with |uuid|, MUST run the following steps:
256257
1. Let |promise| be [=a new Promise=] in the [=relevant realm=] of this {{XRSystem}}.
257258
1. If |session|'s [=XRSession/map of persistent anchors=] does not contain a mapping from |uuid| to an {{XRAnchor}}, [=/reject=] |promise| with {{InvalidStateError}}, return |promise|, and abort these steps.
258-
1. If |session|’s [=ended=] value is `true`, [=/reject=] |promise| with {{InvalidStateError}}, return |promise|, and abort these steps.
259+
1. If |session|’s {{XRSession/ended}} value is `true`, [=/reject=] |promise| with {{InvalidStateError}}, return |promise|, and abort these steps.
259260
1. Let |anchor| be the value of mapping from |uuid| on |session|'s [=XRSession/map of persistent anchors=].
260261
1. If |session|'s [=XRSession/map of new anchors=] contains a mapping from |anchor| to |promise|, [=/reject=] the |promise| with {{InvalidStateError}}, return |promise|, and abort these steps.
261262
1. Add |anchor| to |session|'s [=XRSession/set of tracked anchors=].

0 commit comments

Comments
 (0)