summaryrefslogtreecommitdiff
path: root/odoo/addons/base/tests/test_mail.py
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-05-03 14:02:04 +0200
committerNicolas Lempereur <nle@odoo.com>2018-05-09 12:35:40 +0200
commitb739e659400a223ec2b6d41ef57f27966edfe294 (patch)
tree68c5df5637dfd26720930482334e191bb5df947d /odoo/addons/base/tests/test_mail.py
parent14f59f4b780fa1e757cfce6a46c62c7a6b00d13e (diff)
[FIX] web_editor: optimize big mail transcoding
The browser may throw an error when a big mail such as one with hundreds thousands of tags is being transformed to have a style more compatible with mail clients. The error would be: "Uncaught RangeError: Maximum call stack size exceeded" This happens in jquery because we hare too many nodes (there is an ongoing issue at https://github.com./jquery/sizzle/issues/403) so this commit replace that part by a DFS traversal over DOM nodes. There was also an issue that not having the option "style-inline" would still cause some style code to be ran albeit it was intended not to be solved in 55c7d2d5b00. opw-1841107 closes #24550
Diffstat (limited to 'odoo/addons/base/tests/test_mail.py')
0 files changed, 0 insertions, 0 deletions