Skip to content

Commit 0a2f29f

Browse files
Correct ServiceWorkerRegistration's update() Web IDL
As mentioned in #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.
1 parent 479b8ae commit 0a2f29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
556556
readonly attribute USVString scope;
557557
readonly attribute ServiceWorkerUpdateViaCache updateViaCache;
558558

559-
[NewObject] Promise&lt;undefined&gt; update();
559+
[NewObject] Promise&lt;ServiceWorkerRegistration&gt; update();
560560
[NewObject] Promise&lt;boolean&gt; unregister();
561561

562562
// event

0 commit comments

Comments
 (0)