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

Enable sessionavailable event when launching with fxr:// #27272

Closed
jdm opened this issue Jul 14, 2020 · 3 comments
Closed

Enable sessionavailable event when launching with fxr:// #27272

jdm opened this issue Jul 14, 2020 · 3 comments
Labels
Projects

Comments

@jdm
Copy link
Member

@jdm jdm commented Jul 14, 2020

The fxr:// handler puts FxR into a kiosk-mode kind of environment that doesn't have a URL bar. It would be good to support automatically entering immersive mode as part of that.

@jdm jdm added the A-embedding label Jul 14, 2020
@jdm jdm added this to To do in HoloLens Jul 14, 2020
@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Jul 15, 2020

So we would set the pref dom.webxr.sessionavailable to true if the app is start from fxr://?

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Jul 15, 2020

Can I have an example that would support sessionavailable to make sure this works as expected?

@jdm
Copy link
Member Author

@jdm jdm commented Jul 16, 2020

https://github.com/servo/servo/blob/master/tests/wpt/mozilla/tests/webxr/sessionavailable.html is the only content that exists right now - the sessionavailable event is fired at the navigator.xr object as part of the page load process, so you could modify any other content add a listener for that event and invoke navigator.xr.requestSession.

bors-servo added a commit that referenced this issue Jul 23, 2020
Fire sessionavailable

Depends on #27304
Fix #27272
@atouchet atouchet moved this from To do to Done in HoloLens Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
HoloLens
  
Done
Linked pull requests

Successfully merging a pull request may close this issue.

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