Reproduction steps: * Enter some text in a textfield. * Press 'Home' to go to the beginning of the textfield. * Press any key to insert some text. FrameSelection::selection becomes invalid, because it returns true from isRange() in WebCore::EditorClient::respondToChangedSelection callback. The following comment for VisibleSelection::setWithoutValidation may be of interest (or maybe not): // FIXME: This function breaks the invariant of this class. // But because we use VisibleSelection to store values in editing commands for use when // undoing the command, we need to be able to create a selection that while currently // invalid, will be valid once the changes are undone. This is a design problem. // To fix it we either need to change the invariants of VisibleSelection or create a new // class for editing to use that can manipulate selections that are not currently valid.
Varun: I think you ought to take a look at this eventually.
Also see https://bugs.webkit.org/show_bug.cgi?id=62092.
I think we've fixed this bug in the latest WebKit. Could you check that?
(In reply to comment #3) > I think we've fixed this bug in the latest WebKit. Could you check that? yes.. I dont see this anymore.
*** This bug has been marked as a duplicate of bug 62092 ***