Hello,
I think it is something that you should take a look.
When opening the twitch’s homepage, the following file is loaded.
http://www-cdn.jtvnw.net/assets/global-eb8fffbeb39e1dc3d21dd0e606e697f3.js
in which, contains the following statement:
onbeforeunload="Twitch.player.getPlayer().pauseVideo();",window.onunload="Twitch.player.getPlayer().pauseVideo();"
Maybe the purpose was to pause the video before closing the document. Setting a string to DOM even handler really does not work in Firefox or Chrome (the event handler will remain null). The correct way is to create an anonymous function and assigns it to the event handler.
Best,
Jackson