Skip to content

Commit

Permalink
issue #361. Improving the readability
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Sep 27, 2023
1 parent febe56b commit 963759c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,20 @@ <h2>
permission or determining the permission status.
</p>
<p>
When a permission is revoked, the <a>user agent</a> MAY <a>fire the
"`pushsubscriptionchange`" event</a> for subscriptions created with that permission, with
the <a>service worker registration</a> associated with the <a>push subscription</a> as
|registration|, a {{PushSubscription}} instance representing the <a>push subscription</a>
as |oldSubscription|, and `null` as |newSubscription|. The <a>user agent</a> MUST
<a>deactivate</a> the affected subscriptions in parallel.
When a permission is revoked:
</p>
<ul>
<li>The <a>user agent</a> MUST <a>deactivate</a> all affected subscriptions.</li>
<li>The <a>user agent</a> MAY <a>fire the "`pushsubscriptionchange`" event </a>
<ul>
<li>for subscriptions created with that permission,</li>
<li>with the <a>service worker registration</a> associated with the
<a>push subscription</a> as |registration|,</li>
<li>a {{PushSubscription}} instance representing the <a>push subscription</a>
as |oldSubscription|, and `null` as |newSubscription|.</li>
</ul>
</li>
</ul>
<p>
When a <a>service worker registration</a> is unregistered, any associated <a>push
subscription</a> MUST be <a>deactivated</a>.
Expand Down

0 comments on commit 963759c

Please sign in to comment.