Block Service Workers

We want a setting (or flag or start-switch or policy) to block service workers.

@Johann,
Are you looking for a way to block notifications sent by service workers? Or are you trying to disable them entirely?

I believe you’re looking for the latter, in which case you can use the dev tools window for this if I recall correctly.

Open Dev tools (Menu --> More tools --> Dev tools) then navigate to Application --> Service Workers:


From here, you should be able to Unregister/Stop unwanted service workers.

Many thanks for the quick anwser.
With “block” i mean that no webpage can register any service worker.
You can see the Service Workers in the Application tab of Developer Tools or under the URL brave://serviceworker-internals.
There you can unregister (=delete) Service Workers.
Without any notification every webpage can register Service Workers.

You can block Service Wokers when you also block cookies.
We would appreciate it if we could block service workers without blocking cookies at the same time.

Firefox has a flag to block Service Workers.
There are several extensions that block service workers. But we do not want to install any extensions for it.

I would like to add my voice to the request to block all service workers.
It would be nice to have a checkbox right in
brave://serviceworker-internals
as well as a setting in
brave://flags
so it would be searchable and familiar to Firefox users who have set dom.serviceWorkers.enabled to false.

On my Windows 7 system, I typically run three or more browsers at a time (one or two for VPN, others for particular extensions, other features, or just testing) so these service workers can quickly fill my 16Gb of system ram. (I regularly got the close programs dialogue to free memory before unregistering service workers.) On my Chromebooks, I’ve been wondering why for months, my system was hanging so badly that my trackpad cursor was unresponsive or extremely sluggish, until I unregistered all my service workers and installed the Block Service Workers extension, which by the way runs fine in Brave as well. I’ve also noticed that my available ram now runs between .1 and .5 Gb free instead of between 0 and .1 on my Chromebooks.

Windows 10 seems to be a bit better at the virtual memory and process management, but it may also be I just don’t do as much surfing there as on my Win7 and ChromeOS devices.

Constant desktop notifications for every major new site visited are an annoying downside to using the Block Service Workers extension, as most sites, if not all, install their own service worker. These things are getting to be like the toolbars major web sites encouraged visitors to install that bogged so many computers down in the early days of the Internet. If you allow a site to use desktop notifications, their service worker can then launch every time with your browser, even if you don’t visit the site again for months, and nag you with desktop notification ads, or worse hijack your CPU or bandwidth with things like cyrptocurrency miners or BOTS.

I understand browser developers don’t expect the end user to understand the cost/benefits of service workers, but injecting code with out authorization is a fundamental breach of local system control. Even though each individual service worker may be well written and free of memory leaks, the sheer number of them eventually taxes system resources on typical systems (esp. thin client systems like netbooks and Chromebooks).

My motto is now: "Service workers in my browser are like barnacles on my Internet surfboard."

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.