Index: openacs-4/packages/xowiki/www/resources/chat.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/chat.js,v diff -u -r1.1.2.1 -r1.1.2.2 --- openacs-4/packages/xowiki/www/resources/chat.js 26 Jan 2024 16:37:28 -0000 1.1.2.1 +++ openacs-4/packages/xowiki/www/resources/chat.js 9 Feb 2024 09:49:24 -0000 1.1.2.2 @@ -199,6 +199,16 @@ setTimeout(chatSubscribe, 10000, subscribeURL); } }); + + // + // Close the EventSource connection before we leave/reload the + // page: some browsers, such as Firefox at the time of + // writing, may complain otherwise. + // + window.addEventListener('beforeunload', (e) => { + source.close(); + }); + break; case 'scripted': //