Crash in deleteInsignificantText
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2012 01:23:49 +0000 (01:23 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2012 01:23:49 +0000 (01:23 +0000)
commit537e3541504bf6464ff4207c4f096583f99b18e7
tree33257227cf044a6d14795c63a31aff04c5a71c9d
parentdac251efcde7d6885ccb39cfbccf050a9b16e49b
Crash in deleteInsignificantText
https://bugs.webkit.org/show_bug.cgi?id=78567

Reviewed by Eric Seidel.

Source/WebCore:

Fix the crash. Also update layout at the beginning of each call to deleteInsignificantText
since the previous call may have mutated the DOM.

Test: editing/inserting/delete-insignificant-text-crash.html

* editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::deleteInsignificantText):

LayoutTests:

Add a regression test.

* editing/inserting/delete-insignificant-text-crash.html: Added.
* editing/inserting/delete-insignificant-text-crash.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/inserting/delete-insignificant-text-crash-expected.txt [new file with mode: 0644]
LayoutTests/editing/inserting/delete-insignificant-text-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/CompositeEditCommand.cpp