Invoking PositionSensorVRDevice.prototype.resetSensor() without a sensor plugged in hangs

RESOLVED WORKSFORME

Status

()

Core
General
RESOLVED WORKSFORME
3 years ago
2 years ago

People

(Reporter: \, Unassigned)

Tracking

38 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [webvr][vrm2])

STR:
Without a webvr position sensor plugged in, invoke PositionSensorVRDevice.prototype.resetSensor() on an instance of a PSVRD.

Expected:
No side effects

Actual:
Browser hangs (doesn't crash)
Whiteboard: [vrm2] → [webvr][vrm2]
huh, after the crash, can't seem to repro with:

navigator.getVRDevices().then(function (devices) {
  for (var i = 0, len = devices.length; i < len; ++i) {
    if (devices[i] instanceof PositionSensorVRDevice) {
      devices[i].resetSensor();
    }
  }
})

I think I may have unplugged the device after loading the page?
The code behind this has changed with the implementation of e10s and HMD hotswapping support.

Could you confirm if you can still repro this, Nick?
Flags: needinfo?(nick)
returned my dk2 to desktop. Sorry, bud
Flags: needinfo?(nick)

Comment 4

2 years ago
This no longer seems to be an issue.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.