Description
Hi all.
Background
We have been making WebXR Emulator browser extension which enables users to test WebXR applications on their desktop browser without the need of physical XR device by emulating the devices.
To emulate the devices, we use webxr-polyfill and override the native WebXR API even if the browser supports WebXR API because there seems no way to emulate XR device with the native WebXR API from JavaScript layer.
I've been looking for a way to emulate without overriding the native WebXR API and I found WebXR Testing API can be used to emulate(simulate).
Problem for us
I found this section https://immersive-web.github.io/webxr-test-api/#conformance in the spec
- Conformance
Interfaces and functionality exposed by this specification SHOULD NOT be exposed to typical browsing experiences, and instead SHOULD only be used when running Web Platform Tests.
WebXR Testing API doesn't seem to be exposed to JavaScript in user code or the extension code.
Question
Can we expose WebXR Testing API to the browser extension? For example, we may add "webxrTest" key to permissions in manifest.json of WebExtensions API which allows the extension to access WebXR Testing API.
"permissions": [
"webxrTest"
]
Here might not be the right place to discuss it. If so and you know the right place, I'm happy if you let me know.