WICG / cookie-store

Asynchronous access to cookies from JavaScript
https://wicg.github.io/cookie-store/
Apache License 2.0
143 stars 35 forks source link

Specify the behavior of CookieStoreManager after ServiceWorkerRegistration has been unregistered #237

Open szewai opened 1 month ago

szewai commented 1 month ago

If a registration is unregistered, and there is no service worker using the registration, i.e. the registration will not be in use any more and its data might be cleared, should CookieStoreManager methods throw InvalidStateError? It seems it should, because we won't actually update the subscription list and cookie change event will not be fired.

szewai commented 1 month ago

cc @annevk @RupinMittal