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

Clarify requestPresent outside of user-initiated action #164

Closed
ssylvan opened this issue Dec 16, 2016 · 3 comments
Closed

Clarify requestPresent outside of user-initiated action #164

ssylvan opened this issue Dec 16, 2016 · 3 comments

Comments

@ssylvan
Copy link

ssylvan commented Dec 16, 2016

Currently the spec says "If requestPresent() is called outside of a user gesture the promise MUST be rejected."
However, presumably that only makes sense if we aren't already presenting? In other words, if we're calling requestPresent while already presenting in order to update the layers, shouldn't that be allowed even if it wasn't user-initiated?

@ssylvan ssylvan changed the title Clarify reqeustPresent outside of user-initiated action Clarify requestPresent outside of user-initiated action Dec 16, 2016
@toji
Copy link
Member

toji commented Dec 17, 2016

The short answer is yes, the user gesture requirement should only be for the initial requestor went call. We'll review the spec text and make sure this is clear.

@ssylvan
Copy link
Author

ssylvan commented Dec 17, 2016

Thanks! I suspected this was the intent but wanted to make sure.

@toji
Copy link
Member

toji commented Feb 7, 2017

Tweaked the spec text in bcf5cbd, FWIW. Closing.

@toji toji closed this as completed Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants