DescriptionMake "insertHTML" execCommand not to crash on TEXTAREA
This patch changes "insertHTML" execCommand on TEXTAREA not to crash when
inserted HTML containing text.
The root cause of issue 504886 is calling |plainText()| with null |Range| object
in |ReplacementFragment| constructor. This null |Range| object is comes from
|VisibleSelection::selectionFromContentsOfNode()| with HTML fragment without
text content, e.g. "<b></b>", "<span>", and so on, which returns empty
seleciton.
BUG=504886
TEST=LayoutTests/editing/inserting/insert-html-to-textarea-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198037
Patch Set 1 #
Total comments: 2
Messages
Total messages: 8 (2 generated)
|