Skip to content

Editorial: queue a task in ServiceWorkerGlobalScope.skipWaiting - #1835

Merged
monica-ch merged 1 commit into
w3c:mainfrom
monica-ch:queue-task-serviceworkerglobalscope
Jul 23, 2026
Merged

Editorial: queue a task in ServiceWorkerGlobalScope.skipWaiting#1835
monica-ch merged 1 commit into
w3c:mainfrom
monica-ch:queue-task-serviceworkerglobalscope

Conversation

@monica-ch

@monica-ch monica-ch commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Update to service-worker-global-scope-skipwaiting.

skipWaiting() resolved its promise directly from an "in parallel" block, which violates the "don't touch JS objects from parallel" rule. Wrap the resolve in a Queue a task on the service worker's responsible event loop.

This is part 3/6 of #1740. Split out from #1755 for focused review.


Preview | Diff

…e.skipWaiting

The skipWaiting() method resolved its promise directly from an 'in parallel' block. Wrap the resolve in a Queue a task on the service worker's responsible event loop.

Refs: w3c#1740

@yoshisatoyanagisawa yoshisatoyanagisawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm.

@monica-ch
monica-ch merged commit 0ad97a2 into w3c:main Jul 23, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Jul 23, 2026
…e.skipWaiting (#1835)

SHA: 0ad97a2
Reason: push, by monica-ch

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants