DescriptionMerge 63773 - 2010-07-20 Abhishek Arya <inferno@chromium.org>
Reviewed by David Hyatt.
Check the node is a text node before doing the static cast
for editing commands.
https://bugs.webkit.org/show_bug.cgi?id=42655
Test: editing/execCommand/editing-nontext-node-crash.xhtml
* editing/DeleteSelectionCommand.cpp:
(WebCore::DeleteSelectionCommand::fixupWhitespace):
* editing/InsertLineBreakCommand.cpp:
(WebCore::InsertLineBreakCommand::doApply):
* editing/InsertParagraphSeparatorCommand.cpp:
(WebCore::InsertParagraphSeparatorCommand::doApply):
2010-07-20 Abhishek Arya <inferno@chromium.org>
Reviewed by David Hyatt.
Tests that applying an editing command on a non text node does not
result in crash.
https://bugs.webkit.org/show_bug.cgi?id=42655
* editing/execCommand/editing-nontext-node-crash-expected.txt: Added.
* editing/execCommand/editing-nontext-node-crash.xhtml: Added.
BUG=49628
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53680
Patch Set 1 #
Messages
Total messages: 1 (0 generated)
|