1. Open the attached demo
2. Type something into the black box.
Undo doesn't work.
This is why simple-rte.rniwa.com doesn't work properly on WebKit / Chrome.
Created attachment 94567 [details]
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.
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. ***