Skip to content

Commit 9cc378c

Browse files
committed
plumb id to webidl layer
1 parent 28f45f7 commit 9cc378c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/index.bs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
122122
}
123123
</pre>
124124

125+
<!-- TODO: expose getRegistrationById() -->
125126
<!-- TODO: uncontrol old clients that no longer match in Activate -->
127+
<!-- TODO: change scope logic -->
126128

127129
<section>
128130
<h2 id="motivations">Motivations</h2>
@@ -216,7 +218,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
216218

217219
A [=/service worker registration=] has an associated <dfn export id="dfn-origin">origin</dfn> an [=environment settings object/origin=].
218220

219-
A [=/service worker registration=] has an associated <dfn export id="dfn-id">id</dfn>. It is initially set to null.
221+
A [=/service worker registration=] has an associated <dfn export id="dfn-id">id</dfn> a [=DOMString=]. It is initially set to null.
220222

221223
A [=/service worker registration=] has an associated <dfn export id="dfn-installing-worker">installing worker</dfn> (a [=/service worker=] or null) whose [=service worker/state=] is "`installing`". It is initially set to null.
222224

@@ -509,6 +511,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
509511
readonly attribute ServiceWorker? active;
510512
[SameObject] readonly attribute NavigationPreloadManager navigationPreload;
511513

514+
readonly attribute DOMString id;
512515
readonly attribute USVString scope;
513516
readonly attribute ServiceWorkerUpdateViaCache updateViaCache;
514517

@@ -581,6 +584,12 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
581584
The <dfn attribute for="ServiceWorkerRegistration"><code>navigationPreload</code></dfn> getter steps are to return the [=ServiceWorkerRegistration/service worker registration=]'s {{NavigationPreloadManager}} object.
582585
</section>
583586

587+
<section algorithm="service-worker-registration-id">
588+
<h4 id="service-worker-registration-id">{{ServiceWorkerRegistration/id}}</h4>
589+
590+
The <dfn attribute for="ServiceWorkerRegistration"><code>id</code></dfn> getter steps are to return the [=ServiceWorkerRegistration/service worker registration=]'s [=service worker registration/id=].
591+
</section>
592+
584593
<section algorithm="service-worker-registration-scope">
585594
<h4 id="service-worker-registration-scope">{{ServiceWorkerRegistration/scope}}</h4>
586595

@@ -697,6 +706,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
697706
</pre>
698707
<pre class="idl" id="registration-option-list-dictionary">
699708
dictionary RegistrationOptions {
709+
DOMString id;
700710
USVString scope;
701711
WorkerType type = "classic";
702712
ServiceWorkerUpdateViaCache updateViaCache = "imports";

0 commit comments

Comments
 (0)