Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd input mocking, input sources change event #25463
Conversation
highfive
commented
Jan 8, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jan 8, 2020
| // let cx = global.get_cx(); | ||
| // unsafe { | ||
| // rooted!(in(*cx) let mut added_val = UndefinedValue()); | ||
| // added.to_jsval(*cx, added_val.handle_mut()); |
This comment has been minimized.
This comment has been minimized.
Manishearth
Jan 8, 2020
Author
Member
Annoyingly, to_jsval() here throws a segfault at this line:
I've verified that cx is non null. Am I missing something?
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21085. |
|
Ready to land once servo/webxr#118 does |
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21085. |
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21085. |
|
LGTM, just some minor nits. r=me assuming the segvs have been fixed! |
| @@ -19,7 +19,7 @@ enum XRTargetRayMode { | |||
| [SecureContext, Exposed=Window, Pref="dom.webxr.enabled"] | |||
| interface XRInputSource { | |||
| readonly attribute XRHandedness handedness; | |||
| // [SameObject] readonly attribute XRTargetRayMode targetRayMode; | |||
| readonly attribute XRTargetRayMode targetRayMode; | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Manishearth
Jan 8, 2020
Author
Member
Can't SameObject enums. I believe this was fixed upstream in the spec, we just never updated the commented webidl.
|
@bors-servo r=asajeffrey |
|
|
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21085. |
Add input mocking, input sources change event Depends on servo/webxr#118 Also fixes some bugs I found. Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap. There are a bunch of missing mock pieces that I'll probably do in a separate PR. Still need to run tests. Some things I skipped: - Doing handedness/target ray setting: See immersive-web/webxr-test-api#46 , this would require making our impl support these changing - Handling button initial state: Would require some mock changes, but I ran out of time - Handling profiles/etc: We don't yet have impl support for these r? @jdm
|
|
|
|
@bors-servo retry |
Add input mocking, input sources change event Depends on servo/webxr#118 Also fixes some bugs I found. Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap. There are a bunch of missing mock pieces that I'll probably do in a separate PR. Still need to run tests. Some things I skipped: - Doing handedness/target ray setting: See immersive-web/webxr-test-api#46 , this would require making our impl support these changing - Handling button initial state: Would require some mock changes, but I ran out of time - Handling profiles/etc: We don't yet have impl support for these r? @jdm
|
|
|
@bors-servo retry
|
Add input mocking, input sources change event Depends on servo/webxr#118 Also fixes some bugs I found. Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap. There are a bunch of missing mock pieces that I'll probably do in a separate PR. Still need to run tests. Some things I skipped: - Doing handedness/target ray setting: See immersive-web/webxr-test-api#46 , this would require making our impl support these changing - Handling button initial state: Would require some mock changes, but I ran out of time - Handling profiles/etc: We don't yet have impl support for these r? @jdm
|
|
|
@bors-servo retry
|
Add input mocking, input sources change event Depends on servo/webxr#118 Also fixes some bugs I found. Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap. There are a bunch of missing mock pieces that I'll probably do in a separate PR. Still need to run tests. Some things I skipped: - Doing handedness/target ray setting: See immersive-web/webxr-test-api#46 , this would require making our impl support these changing - Handling button initial state: Would require some mock changes, but I ran out of time - Handling profiles/etc: We don't yet have impl support for these r? @jdm
|
|
|
@bors-servo retry #24726 again |
Add input mocking, input sources change event Depends on servo/webxr#118 Also fixes some bugs I found. Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap. There are a bunch of missing mock pieces that I'll probably do in a separate PR. Still need to run tests. Some things I skipped: - Doing handedness/target ray setting: See immersive-web/webxr-test-api#46 , this would require making our impl support these changing - Handling button initial state: Would require some mock changes, but I ran out of time - Handling profiles/etc: We don't yet have impl support for these r? @jdm
|
|
Manishearth commentedJan 8, 2020
•
edited
Depends on servo/webxr#118
Also fixes some bugs I found.
Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap.
There are a bunch of missing mock pieces that I'll probably do in a separate PR.
Still need to run tests.
Some things I skipped:
r? @jdm