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

Resolve the skipWaiting() promise after activation completes. #1327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mfalken
Copy link
Member

@mfalken mfalken commented Jun 19, 2018

The Activate algorithm's final step was to run Update Worker State
to make the worker activated. However Update Worker State
just queues a task to do so. So the task would run after
skipWaiting() resolved its promise, which wasn't the intent of
the spec.

Fixes #1187.


Preview | Diff

The Activate algorithm's final step was to run Update Worker State
to make the worker `activated`. However Update Worker State
just queues a task to do so. So the task would run after
skipWaiting() resolved its promise, which wasn't the intent of
the spec.

Fixes w3c#1187.
@mfalken
Copy link
Member Author

mfalken commented Jun 19, 2018

@jungkees @wanderview @jakearchibald please take a look

@mfalken
Copy link
Member Author

mfalken commented Jun 19, 2018

WPT change at web-platform-tests/wpt#11566

Base automatically changed from master to main February 4, 2021 19:56
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

Successfully merging this pull request may close these issues.

skipWaiting() promise should resolve after promotion to .active
1 participant