-
Notifications
You must be signed in to change notification settings - Fork 79
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
Resolve promises before enqueuing events #538
Conversation
@jrummell-chromium JFYI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jernoble Does this look OK to you, any potential interop concerns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think this is correct. Promises need to be resolved in task queues also. Also, promises should resolve with something even if that’s an explicit undefined
.
I don't understand what you mean by this. Can you suggest an edit to show me what language you would agree with? |
Sorry for the delay: For example, from the Fetch spec:
See also https://www.w3.org/TR/web-share/ ... how the global task queue is used to resolve promises. |
I audited every instance of "resolve" or "resolved" in the spec. All have values, and all are now inside either "Run the following steps in parallel" or "queue a task" or "Use the cdm to execute". (I had to fix only one instance of a missing queue, in the recently-introduced method |
Also worth a note, since we're being thorough: we resolve a promise inside the session closed algorithm, which is always run inside a task or in a set of parallel steps. |
I'm ready to merge this if there is no further feedback. I'll be on leave for five weeks starting June 22, so if a positive consensus is reached after that date, please don't wait for me to hit the "merge" button. |
Closes #461
Preview | Diff