Skip to content

Commit bb52fbc

Browse files
committed
Use Purge Service Worker Registrations for storage
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.
1 parent 0a75e98 commit bb52fbc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.src.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,11 +628,7 @@ <h4 id="clear-dom">
628628

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

631-
4. For each |registration| in the user agent's set of <a>service worker registrations</a>:
632-
633-
1. If |registration|'s <a>scope URL</a>'s [=url/origin=] is |origin|:
634-
635-
1. Execute {{ServiceWorkerRegistration/unregister()}} on |registration|.
631+
4. Invoke [=Purge Service Worker Registrations=] with |origin| and true.
636632

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

0 commit comments

Comments
 (0)