summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-03-21 13:45:12 +0000
committerJulien Castiaux <juc@odoo.com>2019-03-21 13:45:12 +0000
commite9026bd5223b52e40bc3e36b00863479b2b76ea0 (patch)
treeab691bc2f44cc24a39b3f3049ff98539d1b75f9d /addons/web/static/src/js/views/basic/basic_controller.js
parent78d351aa4d0024853d18b24368e9d377061c3493 (diff)
[FIX] web_editor: editor hang on an infinite loop
In the `getMatchedCSSRule`, the transcoder try to find the real value of a `text-align: inherit` css rule by ascending the html tree until it finds a `text-align` with a meaningful value. By default is exits if it reachs the `<html>` top node but doesn't exit if a call to `.parent()` exits the dom (the behavior of jquery is to return a dummy element when calling `.parent()` on an element that has no parent). This lead to an infinite loop for badly formatted html content. opw-1951095 closes odoo/odoo#32014 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions