Skip to content

Conversation

@ChrisC
Copy link

@ChrisC ChrisC commented Oct 28, 2025

@foolip this should be a pretty straightforward one to review since the webxr directories map one-to-one to the webxr web features! 🎉

Note that there is some overlap with another web feature PR that partially mapped some of these before I realized these should probably all get bundled into one simpler PR. (I cherry-picked commits so hopefully there won't be any merge conflicts later).

Feature: WebXR
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/webxr-device.yml

Note: The navigator.xr API represents the browser's virtual reality or augmented reality system. The core WebXR Device API includes XRSystem, XRSession, XRFrame, XRView, XRPose, XRViewerPose, XRInputSource, XRReferenceSpace, XRRigidTransform, XRWebGLLayer and related interfaces for requesting and managing XR sessions.

Search strategy: Searched for major WebXR interface names (navigator.xr, XRSession, XRFrame, XRView, XRPose, XRViewerPose, XRInputSource, XRReferenceSpace, XRRigidTransform, XRWebGLLayer, XRSystem).

Results:
- Total matches found: 572 across 125 unique files
- Filtered: 83 files mapped

WEB_FEATURES.yml files created:
✅ [webxr/WEB_FEATURES.yml](webxr/WEB_FEATURES.yml) - Core WebXR Device API tests (83 files) - **CREATED**

Excluded (42 files):
- WebXR extension subdirectories (30 files): anchors/ (6), ar-module/ (3), depth-sensing/ (10), dom-overlay/ (2), gamepads-module/ (1), hit-test/ (4), layers/ (2), light-estimation/ (2) - These are extension features that should be classified separately (webxr-anchors, webxr-hit-test, webxr-layers, webxr-lighting-estimation, etc.)
- Non-webxr tests (11 files): speculation-rules/prerender (4), permissions-policy/reporting (2), feature-policy/reporting (1), video-rvfc (2), resources/chromium (2) - Tests that incidentally reference WebXR
- Resources directory (1 file): webxr/resources - Not a test file
✅ webxr/anchors/WEB_FEATURES.yml - webxr-anchors
✅ webxr/ar-module/WEB_FEATURES.yml - webxr-ar
✅ webxr/camera-access/WEB_FEATURES.yml - webxr-camera
✅ webxr/depth-sensing/WEB_FEATURES.yml - webxr-depth-sensing
✅ webxr/dom-overlay/WEB_FEATURES.yml - webxr-dom-overlays
✅ webxr/gamepads-module/WEB_FEATURES.yml - webxr-gamepads
✅ webxr/hand-input/WEB_FEATURES.yml - webxr-hand-input
@ChrisC
Copy link
Author

ChrisC commented Oct 28, 2025

I also wanted to flag that the webxr-hand-input feature maps to only one placeholder IDLharness test. Not sure how we should handle cases like that, but I left the mapping in for now. Happy to remove it or flag it in some other way as needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants