Skip to content

Correct ServiceWorkerRegistration Web IDL#1767

Merged
annevk merged 1 commit intow3c:mainfrom
yoshisatoyanagisawa:swr_fix
May 1, 2025
Merged

Correct ServiceWorkerRegistration Web IDL#1767
annevk merged 1 commit intow3c:mainfrom
yoshisatoyanagisawa:swr_fix

Conversation

@yoshisatoyanagisawa
Copy link
Copy Markdown
Collaborator

@yoshisatoyanagisawa yoshisatoyanagisawa commented May 1, 2025

As mentioned in #1472, https://w3c.github.io/ServiceWorker/#resolve-job-promise-algorithm is written to return Promise. Also, according to https://wpt.fyi/results/service-workers/service-worker/update-result.https.html?label=experimental&label=master&aligned, all implementations are actually returning a Promise<ServiceWorkerRegistration>.


Preview | Diff

As mentioned in w3c#1472,
https://w3c.github.io/ServiceWorker/#resolve-job-promise-algorithm
is written to return Promise<ServiceWorkerRegistration>.
Also, according to https://wpt.fyi/results/service-workers/service-worker/update-result.https.html?label=experimental&label=master&aligned, all implementations are actually returning a ServiceWorkerRegistration.
@yoshisatoyanagisawa yoshisatoyanagisawa requested a review from annevk May 1, 2025 02:24
@yoshisatoyanagisawa
Copy link
Copy Markdown
Collaborator Author

@asutherland @annevk As per #1472, let me also update the Web IDL.

Copy link
Copy Markdown
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Thanks!

@annevk annevk merged commit 0a2f29f into w3c:main May 1, 2025
2 checks passed
@yoshisatoyanagisawa yoshisatoyanagisawa deleted the swr_fix branch May 30, 2025 06:26
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