When Chat such as https://chat.stackoverflow.com/rooms/253534/milp (nothing interesting about that; it's currently empty) is open in Firefox, it takes up high CPU:
The console is constantly spamming this error:
Uncaught Type Error: s.data.replace is not a function
My version of Firefox is 112.0.2 (64-bit).
The error does not appear in Chrome.
Narrowing this down to an extension, it appears to be caused by Adblock Plus 3.17; even disabling blocks on the site is not enough to remove the error - the plugin needs to be disabled entirely.
about:performance
show?message
event handler and it's implying the data supplied (s.data
) with themessage
event isn't aString
(and, thus noreplace()
method), which is a bit strange, because the code does check thats.data
is truthy.