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

Rename supportsSessionMode to supportsSession #595

Merged
merged 2 commits into from
Apr 22, 2019
Merged

Conversation

toji
Copy link
Member

@toji toji commented Apr 19, 2019

Fixes #592. Brings name inline with requestSession, which now takes the
same arguments.

This is a simple enough change that I figured I'd just have a PR ready to go if we agree with #592.

@toji toji added the potential breaking change Issues that may affect the core design structure. label Apr 19, 2019
Copy link
Member

@NellWaliczek NellWaliczek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'd always sort of preferred this naming anyway ;)

index.bs Outdated
@@ -270,13 +270,13 @@ When the <dfn method for="XR">supportsSessionMode(|mode|)</dfn> method is invoke

</div>

Calling {{XR/supportsSessionMode()}} MUST NOT trigger device-selection UI as this would cause many sites to display XR-specific dialogs early in the document lifecycle without user activation.
Calling {{XR/supportsSession()}} MUST NOT trigger device-selection UI as this would cause many sites to display XR-specific dialogs early in the document lifecycle without user activation. Additionally, calling {{XR/supportsSession()}} MUST NOT interfere with any running XR applications on the system.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch that this didn't make it over from the explainer. We should probably also make it clear that this should not cause any other applications to launch on the system such as SteamVR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Fixes #592. Brings name inline with requestSession, which now takes the
same arguments.
@toji toji merged commit a891613 into master Apr 22, 2019
@toji toji deleted the supports-session branch April 22, 2019 18:23
@toji toji added this to the May 2019 Working Draft milestone Apr 22, 2019
@AdaRoseCannon AdaRoseCannon added the ed:spec Include in newsletter, spec change label May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ed:spec Include in newsletter, spec change potential breaking change Issues that may affect the core design structure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

supportsSessionMode -> supportsSession?
3 participants