user1424739
user1424739

Reputation: 13655

How to disable websockets support in Firefox?

I set network.websocket.enabled to false in about:config.

But when I access the following URL

https://www.aging-us.com/article/102435

a websocket request like the following is still used as shown in the developer tools.

wss://www.aging-us.com/sockjs/829/febrfdll/websocket

What is the correct way to disable websocket in Firefox? Thanks.

Upvotes: 0

Views: 2741

Answers (1)

Sebastian Zartner
Sebastian Zartner

Reputation: 20085

There is no preference network.websocket.enabled in the code, as far as I can see. And there doesn't seem to be any way to completely disable WebSockets, unfortunately.

There was an enhancement request for allowing to temporarily disable certain features via the DevTools, though it got closed due to technical limitations in the engine to do that.

A workaround for that might be to set the preference network.websocket.max-connections in about:config to 0. That doesn't disable the feature completely, though at least suppresses any WebSocket connections.

Upvotes: 2

Related Questions