You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should XRInputSource.profiles changes fire an XRInputSourcesChangeEvent? #783
The spec says "When the handedness, targetRayMode, or presence of a gripSpace or gamepad for any XR input sources change for XRSession session, the user agent MUST run the following steps". Would it also make sense to re-create the input source and fire an event when the contents of the profiles array changes?
It's worth noting that the profiles is a FrozenArray, which means it probably shouldn't be updated in-place by the browser. Since it also has the [SameObject] attribute, re-creating the XRInputSource seems like the only compliant solution for when the profiles array changes.
Activity
jacobcdewitt commentedon Jul 30, 2019
It's worth noting that the profiles is a FrozenArray, which means it probably shouldn't be updated in-place by the browser. Since it also has the [SameObject] attribute, re-creating the XRInputSource seems like the only compliant solution for when the profiles array changes.
@toji , what are your thoughts on this?
toji commentedon Jul 31, 2019
Yes.
Recreate XRInputSource when profiles change.
Recreate XRInputSource when profiles change.
Recreate XRInputSource when profiles change.
Recreate XRInputSource when profiles change.
Recreate XRInputSource when profiles change.
Manishearth commentedon Aug 13, 2019
#795
Bug 1573257 [wpt PR 18338] - Recreate XRInputSource when profiles cha…
Bug 1573257 [wpt PR 18338] - Recreate XRInputSource when profiles cha…
Recreate XRInputSource when profiles change.
Bug 1573257 [wpt PR 18338] - Recreate XRInputSource when profiles cha…
Bug 1573257 [wpt PR 18338] - Recreate XRInputSource when profiles cha…
Bug 1573257 [wpt PR 18338] - Recreate XRInputSource when profiles cha…
Bug 1573257 [wpt PR 18338] - Recreate XRInputSource when profiles cha…