Null dereference loading Blink layout test editing/execCommand/insert-ordered-list...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Oct 2015 22:49:50 +0000 (22:49 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Oct 2015 22:49:50 +0000 (22:49 +0000)
commit6ae47dc5b3c2a10ed45e98681135e2c3bf1fb512
tree82befb20135259964d2ed5d001c37b24dfee210c
parent41892c2cdca37e0e0cfd6ea727fa4c34f8e5aba1
Null dereference loading Blink layout test editing/execCommand/insert-ordered-list-crash.html
https://bugs.webkit.org/show_bug.cgi?id=150209
<rdar://problem/23137198>

Patch by Jiewen Tan <jiewen_tan@apple.com> on 2015-10-26
Reviewed by Chris Dumez.

Source/WebCore:

This is a merge from Blink r168006:
https://codereview.chromium.org/181283002

Test: editing/execCommand/insert-ordered-list-crash.html

* editing/InsertListCommand.cpp:
(WebCore::InsertListCommand::doApply):
setEndingSelection() might change endingSelection(), we should check again.

LayoutTests:

* editing/execCommand/insert-ordered-list-crash-expected.txt: Added.
* editing/execCommand/insert-ordered-list-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/insert-ordered-list-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/InsertListCommand.cpp