- From: Asa Kusuma <notifications@github.com>
- Date: Wed, 31 Oct 2018 09:57:21 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 31 October 2018 16:57:54 UTC
@slightlyoff re: clear-site-data, I understand the theory behind how it's supposed to work, but I'm not convinced that using `unregister()` (which is what [clear-site-data uses](https://w3c.github.io/webappsec-clear-site-data/#clear-dom)) can guarantee all service workers are removed, according to the spec. `unregister()` doesn't actually take effect until no client is [using](https://w3c.github.io/ServiceWorker/#dfn-use) the registration. Even if `reloading()` did create a point in time in which the client was not `using` the registration, not sure that iterating over each client and calling `reload()` will guarantee that there was a point in time in which no client was `using` the registration. My general 2 cents is that the link between `Clear-Site-Data` and "all service worker gone" seems too implicit for what is designed to be a last-line-of-defense safeguard. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/614#issuecomment-434762651
Received on Wednesday, 31 October 2018 16:57:54 UTC