[webvr] After reloading pages, it can't enumerate the controllers

RESOLVED FIXED in Firefox 53

Status

()

defect
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: daoshengmu, Assigned: daoshengmu)

Tracking

unspecified
mozilla53
Points:
---

Firefox Tracking Flags

(firefox53 fixed)

Details

Attachments

(1 attachment)

That is because we have to clean the current using controllers when the nsGlobalWindow is no longer to have gamepads.
Assignee: nobody → dmu
Comment on attachment 8816073 [details]
Bug 1321505 - Clean VR controllers when nsGlobalWindow no longer uses gamepads;

https://reviewboard.mozilla.org/r/96862/#review97204

This looks good for now, but we may need to make changes later as we start to use the controllers from multiple content at once, such as when chrome UX implements a 3d cursor model and controls.
Attachment #8816073 - Flags: review?(kgilbert) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c4db9e919f6c
Clean VR controllers when nsGlobalWindow no longer uses gamepads; r=kip
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c4db9e919f6c
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.