Apply markup sanitizer in CompositeEditCommand::MoveParagraphs()
CompositeEditCommand::MoveParagraphs() serailizes part of the DOM and then re-parse it and insert it at some other place of the document. This is essentially a copy-and-paste, and can be exploited in the same way how copy-and-paste is exploited. So we should also sanitize markup in the function. Bug: 1141350 Change-Id: I25c1dfc61c20b9134b23e057c5a3a0f56c190b5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500633 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#821098}
Showing
Please register or sign in to comment