user.js: How disable Worker, SharedWorker, Web Workers? [solved: use uBlock Origin]

Hi. serviceWorkers disable:

user_pref("dom.serviceWorkers.enabled", false);

Please tell me how to disable Worker, SharedWorker, Web Workers?

     [1]    Web Workers: https://developer.mozilla.org/docs/Web/API/Web_Workers_API
     [2]         Worker: https://developer.mozilla.org/docs/Web/API/Worker
     [4]   SharedWorker: https://developer.mozilla.org/docs/Web/API/SharedWorker

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

this warrants revisiting dom.serviceWorkers.enabled default.

No. This only means the fact that was obvious for a long time, but was just ignored, because knowing that fact is useless, because we have no choice: we just should not use browsers by Mozilla. Remembering that we also should not use browsers by Googlag, this means we should not use any browsers and the Web at all. The game is lost. Now it is obvious that we are fools. The game was already lost by the time Googlag has announced it will have an own browser. If Googlag ever considered making an own browser, it has meant that our game has been lost. What can be wrong when a rich company already owning the Web makes an own browser? Nothing, the result is predermined, they will own not only the Web, but also the browsers. So, a monopolist goes to guaranteedly expand its monopoly. If we allowed it to do it, it means the game had already been already lost.

he wasn’t being impractical - if we are going to connect to the net with any modern browser using any modern device, the game IS lost, several times over, and at least as far back as '98 or so, and it matters not how hardened the browser is or what browser it is

this repo (rightfully) doesn’t deal with hardware or firmware and therein is where the real danger lies

  1. just workers cannot be disabled by prefs.
  2. service workers currently can be disabled … but Mozilla is going to replace webextensions background pages with service workers …

Sad, maybe this only worked on older firefox releases or it only works with WebWorkers (your example uses SharedWorkers). Depending on the reason you want to disable them, you can use

*##+js(set, Worker, noopFunc)
*##+js(set, ServiceWorker, noopFunc)
*##+js(set, SharedWorker, noopFunc)