diff --git a/internal/core/webrtc_index.html b/internal/core/webrtc_index.html
index 574034495b7..6b26a0b8e3f 100644
--- a/internal/core/webrtc_index.html
+++ b/internal/core/webrtc_index.html
@@ -80,7 +80,8 @@
switch (this.pc.iceConnectionState) {
case "connected":
this.pc.onicecandidate = undefined;
- this.ws.onmessage = undefined;
+ // do not unbind ws.onmessage due to a strange Firefox bug
+ // if all callbacks are removed from WS, video freezes after some seconds.
this.ws.onerror = undefined
this.ws.onclose = undefined;
// do not close the WebSocket connection