File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,22 @@ <h2>
342
342
`{name: "push", userVisibleOnly: false}` is [=PermissionDescriptor/stronger than=]
343
343
`{name: "push", userVisibleOnly: true}`.
344
344
</ 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 >
355
+ < p class ="note ">
356
+ A permission state change can happen for a number of reasons, some of which are likely
357
+ vendor specific. Because of that, this specification does not mandate firing the
358
+ < a > `"pushsubscriptionchange"`</ a > event in all possible cases, and instead leaves it up to
359
+ the < a > user agent</ a > to decide when it is appropriate to do so.
360
+ </ p >
345
361
</ section >
346
362
</ section >
347
363
< section >
You can’t perform that action at this time.
0 commit comments