w3c / webappsec-clear-site-data

WebAppSec Clear Site Data
https://w3c.github.io/webappsec-clear-site-data/
Other
19 stars 21 forks source link

Use Purge Service Worker Registrations for storage #63

Open jungkees opened 4 years ago

jungkees commented 4 years ago

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: https://github.com/w3c/webappsec-clear-site-data/issues/54. Service Workers issue: https://github.com/w3c/ServiceWorker/issues/614. Service Workers PR: https://github.com/w3c/ServiceWorker/pull/1506.


Preview | Diff

jungkees commented 4 years ago

@mikewest, I'm working on a change - the sited PR - to expose an algorithm that purge service worker registrations immediately. Please take a look at this change and the Service Workers PR.