Space Harrier WebVR Three.js demo works in Firefox 54 Release channel (without VR display), but not Beta or Nightly 54

NEW
Unassigned

Status

()

Core
WebVR
P4
normal
4 months ago
a month ago

People

(Reporter: cpeterson, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox55 affected, firefox56 affected, firefox57 affected)

Details

(URL)

(Reporter)

Description

4 months ago
STR:
1. Load https://dlittle42.github.io/machinecode/examples/spaceharrier_vr/index7.html

RESULT:
The game demo loads in Chrome and Firefox 54 Release channel (without VR hardware), but just shows a magenta page with a black rectangle in Firefox Beta and Nightly builds, including Beta and Nightly 54! Thus I was not able to find a regression point using mozregression.

I see the following JavaScript error in the devtools console because navigator.getVRDisplays() doesn't report any VR displays:

TypeError: hmd is null. webvr-manager.js:353:30
I have reproduced this in the current Nightly.  Disabling WebVR with dom.vr.enabled allows it to run normally on Nightly.  We are hitting a code path on the site unique to having the WebVR API available, but no HMDs attached.

Perhaps the issue could be solved by updating webvr-manager.js and/or the threejs vreffect.js on the site?
Flags: needinfo?(cpeterson)
(Reporter)

Comment 2

3 months ago
I filed a bug on the game's GitHub repo: https://github.com/dlittle42/machinecode/issues/1
Flags: needinfo?(cpeterson)
status-firefox57: --- → affected
Priority: -- → P4
You need to log in before you can comment on or make changes to this bug.