Reproduction steps: 1. Open the attached demo 2. Type something into the black box. 3. Undo Expected result: Undo works. Actual result: Undo doesn't work.
This is why simple-rte.rniwa.com doesn't work properly on WebKit / Chrome.
Created attachment 94567 [details] demo Apparently, I forgot to attach the test case earlier. It turned out that this bug is nothing to with event handler. The problem reproduces whenever you modify input element's value.
Of course this is broken because we call clearUndoRedoOperations() in RenderTextControl::setInnerTextValue. Relevant changesets: http://trac.webkit.org/changeset/15565 http://trac.webkit.org/changeset/29748
Created attachment 94662 [details] fixes the bug
Thanks for the review, Darin. Landing it now.
Committed r87204: <http://trac.webkit.org/changeset/87204>
*** Bug 48665 has been marked as a duplicate of this bug. ***