RESOLVED DUPLICATE of bug 62092 67464
Invalid selection made temporarily when entering text in textfield
https://bugs.webkit.org/show_bug.cgi?id=67464
Summary Invalid selection made temporarily when entering text in textfield
Sadrul Habib Chowdhury
Reported 2011-09-01 21:24:54 PDT
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.
Attachments
Robert Kroeger
Comment 1 2011-09-02 07:28:02 PDT
Varun: I think you ought to take a look at this eventually.
Ryosuke Niwa
Comment 2 2011-09-08 15:11:38 PDT
Ryosuke Niwa
Comment 3 2013-02-03 14:16:53 PST
I think we've fixed this bug in the latest WebKit. Could you check that?
Varun Jain
Comment 4 2013-02-04 11:06:53 PST
(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.
Ryosuke Niwa
Comment 5 2013-02-04 11:33:52 PST
*** This bug has been marked as a duplicate of bug 62092 ***
Note You need to log in before you can comment on or make changes to this bug.