KEMBAR78
Move racy parts of requestSession() to the main thread by Manishearth · Pull Request #706 · immersive-web/webxr · GitHub
Skip to content

Conversation

Manishearth
Copy link
Contributor

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

Looks good to me pending the addition of some load-bearing whitespace.

index.bs Outdated
1. If |immersive| is <code>true</code>:
1. If the algorithm is not [=triggered by user activation=], [=reject=] |promise| with a "{{SecurityError}}" {{DOMException}} and return |promise|.
1. If [=pending immersive session=] is <code>true</code> or [=active immersive session=] is not <code>null</code>, [=reject=] |promise| with an "{{InvalidStateError}}" {{DOMException}} and return |promise|.
1. Set [=pending immersive session=] to be <code>true</code>.
Copy link
Member

Choose a reason for hiding this comment

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

This line appears to need a bit of additional indentation to logically fall under the If immersive is true: condition.

@Manishearth
Copy link
Contributor Author

Fixed!

@toji
Copy link
Member

toji commented Jun 17, 2019

Thanks you!

@toji toji merged commit 329d642 into immersive-web:master Jun 17, 2019
@toji toji added this to the June 2019 milestone Jun 17, 2019
@AdaRoseCannon AdaRoseCannon added the ed:spec Include in newsletter, spec change label Jun 17, 2019
@Manishearth Manishearth deleted the requestsession-racy branch August 13, 2019 05:13
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

requestSession() should set "pending immersive session" synchronously

3 participants