Tuesday, June 18, 2024
1 change · saas-17.1
Resolved issues and error corrections
This fix prevents live chat conversations from crashing in some browsers when a visitor or chat thread name contains non-ASCII characters. It changes how ongoing chat data is stored so customers can continue conversations reliably across supported browsers, especially Safari.
Original PR description
The live chat uses cookies to save data about the ongoing conversation, such as the thread name. When this information contains non-ASCII characters, the behavior of the cookie is not consistent across browsers. Safari does not store it properly, and trying to parse it later on results in a crash. Until version 17 ([1]), the fix relied on encoding the data using the `encodeURIComponent` method. However, cookie size is limited to 4096 bytes, and this limit can be reached. Starting with version 17.3, the live chat does not use cookies anymore ([2]). This PR backports this behavior to fix the issue. opw-3968341 [1]: https://github.com/odoo/odoo/pull/168524 [2]: https://github.com/odoo/odoo/pull/167495