wooque / site-bleacher

Remove automatically cookies, local storages, IndexedDBs, service workers, cache storages, filesystems and webSQLs
43 stars 2 forks source link

Service workers removed for whitelisted sites #7

Closed r13s closed 4 years ago

r13s commented 4 years ago

Actual behavior:

  1. Add a site using a service worker, for example, YouTube, to whitelist.
  2. Open about:serviceworkers and make sure that the YouTube service worker is registered.
  3. Open any non-whitelist site in new tab.
  4. Close tab from step 3.
  5. Open about:serviceworkers and make sure that no service worker is registered.

Expected behavior:

Thank You.

wooque commented 4 years ago

This is problem with Firefox browsingData.remove extension API implementation (Chrome doesn't have this problem) which doesn't support removing service workers for specific domains, so when remove is called all service workers are removed. If you or someone else has a workaround I happily to implement it.

r13s commented 4 years ago

How about unregistering non-whitelisted service workers instead of deleting them? Maybe something like the automated functionality of this extension?

Will it be difficult to implement or will it work slowly?

I'm not a programmer, sorry.

r13s commented 4 years ago

No, it was a bad idea, so I close it. Thanks.