Content script can’t open a WebSocket connection in Firefox
Dev tools of the site, dev tools of the service worker and background.js can open a websocket connection perfectly fine. The content scripts however, will trigger onerror, then onclose immediately. I am using Manifest 2, with permission to <all_urls>, content script matching the website correctly and onclose code is 1006.