Skip to content

Editorial: queue a task in ServiceWorkerContainer.getRegistration - #1833

Merged
monica-ch merged 2 commits into
w3c:mainfrom
monica-ch:queue-task-serviceworkercontainer
Jul 17, 2026
Merged

Editorial: queue a task in ServiceWorkerContainer.getRegistration#1833
monica-ch merged 2 commits into
w3c:mainfrom
monica-ch:queue-task-serviceworkercontainer

Conversation

@monica-ch

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

Copy link
Copy Markdown
Collaborator

Update to navigator-service-worker-getRegistration.

The step running in parallel resolved/rejected the promise directly, which violates the "don't touch JS objects from parallel" rule. Wrap it in a Queue a task on the responsible event loop.

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


Preview | Diff

…getRegistration

The step running in parallel resolved/rejected the promise directly, which violates the 'don't touch JS objects from parallel' rule. Wrap it in a Queue a task on the responsible event loop.

Refs: w3c#1740
Comment thread index.bs Outdated

@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 w/ comment.

Per @yoshisatoyanagisawa: Match Service Worker Registration should stay in the parallel block so it runs in parallel; only the promise-resolution steps need to be inside the Queue a task.
@monica-ch
monica-ch marked this pull request as ready for review July 17, 2026 16:12
@monica-ch
monica-ch merged commit 0467916 into w3c:main Jul 17, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Jul 17, 2026
)

SHA: 0467916
Reason: push, by monica-ch

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to asleekgeek/ServiceWorker that referenced this pull request Jul 17, 2026
…c#1833)

SHA: 0467916
Reason: push, by pull[bot]

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