javascriptgoogle-chromefirefoxshared-worker

Sharedworkers in Firefox


I'm working on an application which uses a websocket from a SharedWorker. According to the documentation, SharedWorkers should be supported in current versions of Chrome and Firefox. However, when I try the example from this GitHub, it works perfectly in Chrome, but nothing happens in Firefox: https://github.com/goeddea/scratchbox/tree/master/test_cases/shared_webworkers

Is this example wrong, or does Firefox lack some relevant support for SharedWorkers, or maybe it has something to do with using "http://localhost" (SharedWorkers only work with examt same protocol, host and port)?


Solution

  • Firefox pushed Quantum before multiprocess worker support was finished.

    I believe this is the current issue https://bugzilla.mozilla.org/show_bug.cgi?id=1438945

    The dom.ipc.multiOptOut setting should revert to single process and allow shared workers to work again.