Skip to content

Commit 0cf558e

Browse files
committed
Allow firing pushsubscriptionchange on all permission changes
1 parent fe3f8ff commit 0cf558e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.html

+10
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,16 @@ <h2>
342342
`{name: "push", userVisibleOnly: false}` is [=PermissionDescriptor/stronger than=]
343343
`{name: "push", userVisibleOnly: true}`.
344344
</p>
345+
<p>
346+
When the permission state changes (for example, it is revoked or re-granted), the <a>user
347+
agent</a> MAY <a>fire the "`pushsubscriptionchange`" event</a> for subscriptions created
348+
with that permission, with the <a>service worker registration</a> associated with
349+
the <a>push subscription</a> as |registration|, a {{PushSubscription}} instance
350+
representing the <a>push subscription</a> which should not be used anymore (for example,
351+
because it has been or it is being <a>deactivated</a>) or `null` if it is not available
352+
anymore as |oldSubscription|, and a {{PushSubscription}} representing a new valid <a>push
353+
subscription</a> or `null` if none could be created as |newSubscription|.
354+
</p>
345355
</section>
346356
</section>
347357
<section>

0 commit comments

Comments
 (0)