Firefox VR emulator not initialising XR

Firefox v129.0.2 (64-bit) was just released on August 20th. Unfortunately my browser automatically updated and I’ve discovered this version doesn’t play nice with BabylonJS XR experience. When I open the VR emulator of Firefox in Windows and go to any VR website (like https://punkoffice.com) I’m getting these errors:

Error initializing XR
WebXR not available

and I’m not seeing the VR icon on the screen. This is just when running this line:
const xrHelper = await scene.createDefaultXRExperienceAsync()

Please, bear with us as @RaananW is in vacations until next week.

1 Like

Will look into that later today for sure! Can I ask - is any other webxr experience working? is it babylon-only issue?

EDIT - I just checked with the webxr emulator, and it seems to be working. what extension are you using to test with?

I checked the sites here WebXR - Samples and I get a “VR not found”. I don’t have any extensions. It just seemed to work before and an webXR tab was available in the dev tools. Maybe some settings or an extension got removed that I need to have. Any recommendations?

If it is just to test webxr experiences on firefox, install the webxr emulator which works well on firefox - WebXR API Emulator – Get this Extension for :fox_face: Firefox (en-US) (mozilla.org)

There is a newer, better emulator, but AFAIK it doesn’t support firefox.

I’ve installed the emulator. Some VR works but I’m not able to get the AR demos or hand-tracking demos to work.

immersive AR - https://playground.babylonjs.com/#F41V6N#32

hand tracking - https://playground.babylonjs.com/#X7Y4H8#73

This is because this emulator is a few years old and does not support new WebXR features. The better emulator, coming from meta, is suited for chrome/edge
Firefox has sadly given up on XR a long time