Skip to content

Commit

Permalink
Use Purge Service Worker Registrations for storage
Browse files Browse the repository at this point in the history
Clear-Site-Data: "storage" has used Service Workers' unregister() as
Service Workers' had no external algorithm that allows immediate purging
of the service worker registrations. This change calls into Purging
Service Worker Reigstration algorithm defined in Service Workers with
the origin and intention to unclaim the controlled clients when
"storage" directive is specified.

Issue: w3c#54.
Service Workers issue: w3c/ServiceWorker#614.
Service Workers PR: w3c/ServiceWorker#1506.
  • Loading branch information
jungkees committed Feb 26, 2020
1 parent 0a75e98 commit bb52fbc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,7 @@ <h4 id="clear-dom">

1. [=delete a database|Delete=] |database|.

4. For each |registration| in the user agent's set of <a>service worker registrations</a>:

1. If |registration|'s <a>scope URL</a>'s [=url/origin=] is |origin|:

1. Execute {{ServiceWorkerRegistration/unregister()}} on |registration|.
4. Invoke [=Purge Service Worker Registrations=] with |origin| and true.

5. For each |appcache| in the user agent's set of [=application caches=]:

Expand Down

0 comments on commit bb52fbc

Please sign in to comment.