DescriptionCheck nullable value before using it in ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline
This patch changes removeRedundantStylesAndKeepStyleSpanInline() to check
nullable value |element->parentNode()| before using it. L529, if-statement
just after this change, checks |element->parentNode()| too.
BUG=369422
TEST=LayoutTests/editing/execCommand/insert-html-to-document-element-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175019
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|