From 28031419c8687156d7c8294813b0217d6bc5c3e5 Mon Sep 17 00:00:00 2001 From: Alex Cooper Date: Wed, 10 Dec 2025 12:51:22 -0800 Subject: [PATCH] Fix bikeshed warnings about XRSession and missing end tags --- index.bs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index bf2369c..e710789 100755 --- a/index.bs +++ b/index.bs @@ -55,7 +55,7 @@ spec: WebXR Device API - Level 1; urlPrefix: https://www.w3.org/TR/webxr/# type: interface; text: XRSession; url: xrsession-interface for: XRSession; type: dfn; text: animation frame; url: xrsession-animation-frame - type: dfn; text: ended; url: ended + type: attribute; text: ended; url: xrsession-ended type: dfn; text: mode; url: xrsession-mode type: dfn; text: XR device; url: xrsession-xr-device type: interface; text: XRViewGeometry; url: xrviewgeometry-mixin @@ -340,24 +340,28 @@ The {{XRSession/depthActive}} returns the current [=depth sensing active state=] When {{XRSession/resumeDepthSensing()}} is invoked on an {{XRSession}} |session|, the User Agent MUST run the following steps: -1. If |session|'s [=XRSession/ended=] value is true, throw an {{InvalidStateError}} and abort these steps. +1. If |session|'s {{XRSession/ended}} value is true, throw an {{InvalidStateError}} and abort these steps. 1. Let |frame| be |session|'s [=XRSession/animation frame=]. 1. If |frame|'s [=XRFrame/active=] boolean is false, throw an {{InvalidStateError}} and abort these steps. 1. If [=depth-sensing=] feature descriptor is not [=list/contain|contained=] in the |session|'s [=XRSession/XR device=]'s [=XR device/list of enabled features=] for |session|'s [=XRSession/mode=], [=exception/throw=] a {{NotSupportedError}} and abort these steps. 1. If [=depth sensing active state=] is true, abort these steps. 1. Set [=depth sensing active state=] to true. + +
When {{XRSession/pauseDepthSensing()}} is invoked on an {{XRSession}} |session|, the User Agent MUST run the following steps: -1. If |session|'s [=XRSession/ended=] value is true, throw an {{InvalidStateError}} and abort these steps. +1. If |session|'s {{XRSession/ended}} value is true, throw an {{InvalidStateError}} and abort these steps. 1. Let |frame| be |session|'s [=XRSession/animation frame=]. 1. If |frame|'s [=XRFrame/active=] boolean is false, throw an {{InvalidStateError}} and abort these steps. 1. If [=depth-sensing=] feature descriptor is not [=list/contain|contained=] in the |session|'s [=XRSession/XR device=]'s [=XR device/list of enabled features=] for |session|'s [=XRSession/mode=], [=exception/throw=] a {{NotSupportedError}} and abort these steps. 1. If [=depth sensing active state=] is false, abort these steps. 1. Set [=depth sensing active state=] to false. +
+ Obtaining depth data {#obtaining-data} ====================