Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sessionavailable event that allows content to enter an XR session without a user gesture #27235

Merged
merged 2 commits into from Jul 10, 2020

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Jul 10, 2020

This allows servo to implement immersive web apps. https://immersive-web.github.io/webxr/#application-launch


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because I'm not sure we should have a WPT for something this non-standard.
…on without a user gesture
@highfive
Copy link

highfive commented Jul 10, 2020

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/document.rs, components/script/dom/xrsystem.rs
@highfive
Copy link

highfive commented Jul 10, 2020

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@asajeffrey
Copy link
Member Author

asajeffrey commented Jul 10, 2020

Should I add a test in the mozilla test directory?

@jdm
Copy link
Member

jdm commented Jul 10, 2020

That sounds reasonable.

@jdm
jdm approved these changes Jul 10, 2020
Copy link
Member

jdm left a comment

An automated test would be nice.

@asajeffrey
Copy link
Member Author

asajeffrey commented Jul 10, 2020

Added a test. @bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2020

📌 Commit 1af1dc0 has been approved by jdm

bors-servo added a commit that referenced this pull request Jul 10, 2020
Add a sessionavailable event that allows content to enter an XR session without a user gesture

<!-- Please describe your changes on the following line: -->

This allows servo to implement immersive web apps. https://immersive-web.github.io/webxr/#application-launch

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because I'm not sure we should have a WPT for something this non-standard.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2020

Testing commit 1af1dc0 with merge 5b20a8b...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2020

💔 Test failed - status-taskcluster

@jdm
jdm approved these changes Jul 10, 2020
@jdm
Copy link
Member

jdm commented Jul 10, 2020

./tests/wpt/mozilla/tests/webxr/sessionavailable.html:13: tab on line
./tests/wpt/mozilla/tests/webxr/sessionavailable.html:14: tab on line
./tests/wpt/mozilla/tests/webxr/sessionavailable.html:15: tab on line
./tests/wpt/mozilla/tests/webxr/sessionavailable.html:16: tab on line
@asajeffrey asajeffrey force-pushed the asajeffrey:webxr-sessionavailable branch from 1af1dc0 to a6da5dc Jul 10, 2020
@asajeffrey
Copy link
Member Author

asajeffrey commented Jul 10, 2020

Grr, thank you emacs. @bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2020

📌 Commit a6da5dc has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2020

Testing commit a6da5dc with merge a77a1f7...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 10, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing a77a1f7 to master...

@bors-servo bors-servo merged commit a77a1f7 into servo:master Jul 10, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.