diff --git a/index.html b/index.html index af2c952..0e1675d 100644 --- a/index.html +++ b/index.html @@ -185,8 +185,11 @@
@@ -205,6 +208,7 @@
SecurityError
,
NetworkError
,
+ event listener,
and steps for
constructing events are defined in [[!DOM]].
@@ -223,9 +227,12 @@ ExtendableEvent
,
- and ExtendableEventInit
- are defined in [[!SERVICE-WORKERS]].
+ ExtendableEventInit
,
+ extend
+ lifetime promises and the Handle
+ Functional Event algorithm are defined in [[!SERVICE-WORKERS]].
The algorithms utf-8
@@ -407,7 +414,8 @@
Example
- // https://example.com/serviceworker.js
+
+// https://example.com/serviceworker.js
this.onpush = function(event) {
console.log(event.data);
// From here we can write the data to IndexedDB, send it to any open
@@ -851,21 +859,50 @@
this event, in order to continue receiving push messages.
- To fire a pushsubscriptionchange
event, the user agent MUST run the
- following steps:
+ When new push subscription information becomes available, the user agent
+ MUST run the following steps:
ServiceWorkerGlobalScope
of the Service
- Worker associated with the webapp.
+ pushsubscriptionchange
at scope.
+ ExtendableEvent
interface, with the event type
+ pushsubscriptionchange
, which does not bubble, is not cancelable, and
+ has no default action.
+ + This algorithm ensures that the webapp is able to react to any non-destructive + change in a push subscription, such as an automatic refresh, without causing any + active push subscription to be terminated prematurely. A webapp can request + a new push subscription during this process and ensure that no push + messages are lost. +