Skip to content

Commit 62db59f

Browse files
Explain message and messageerror for ServiceWorkerContainer. (#1572)
Addresses #1549 Co-authored-by: Jake Archibald <[email protected]>
1 parent 0861a07 commit 62db59f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/index.bs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,11 +803,11 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
803803
</tr>
804804
<tr>
805805
<td><dfn attribute for="ServiceWorkerContainer"><code>onmessage</code></dfn></td>
806-
<td>{{message!!event}}</td>
806+
<td>{{ServiceWorkerContainer/message!!event}}</td>
807807
</tr>
808808
<tr>
809809
<td><dfn attribute for="ServiceWorkerContainer"><code>onmessageerror</code></dfn></td>
810-
<td>{{messageerror!!event}}</td>
810+
<td>{{ServiceWorkerContainer/messageerror!!event}}</td>
811811
</tr>
812812
</tbody>
813813
</table>
@@ -872,6 +872,16 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
872872
<td>{{Event}}</td>
873873
<td>The [=ServiceWorkerContainer/service worker client=]'s <a>active service worker</a> changes. (See step 9.2 of the <a>Activate</a> algorithm. The <a>skip waiting flag</a> of a [=/service worker=] causes <a lt="activate">activation</a> of the [=/service worker registration=] to occur while [=/service worker clients=] are <a>using</a> the [=/service worker registration=], {{ServiceWorkerContainer/controller|navigator.serviceWorker.controller}} immediately reflects the <a>active worker</a> as the [=/service worker=] that <a>controls</a> the [=/service worker client=].)</td>
874874
</tr>
875+
<tr>
876+
<td><dfn event id="service-worker-container-message-event"><code>message</code></dfn></td>
877+
<td>{{Event}}</td>
878+
<td>The [=ServiceWorkerContainer/service worker client=] receives a message from a [=/service worker=]. See {{Client/postMessage(message, options)}}.</td>
879+
</tr>
880+
<tr>
881+
<td><dfn event id="service-worker-container-messageerror-event"><code>messageerror</code></dfn></td>
882+
<td>{{Event}}</td>
883+
<td>The [=ServiceWorkerContainer/service worker client=] is sent a message that cannot be deserialized from a [=/service worker=]. See {{Client/postMessage(message, options)}}.</td>
884+
</tr>
875885
</tbody>
876886
</table>
877887
</section>

0 commit comments

Comments
 (0)