[Webkit-unassigned] [Bug 67464] New: Invalid selection made temporarily when entering text in textfield

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 1 21:24:54 PDT 2011


           Summary: Invalid selection made temporarily when entering text
                    in textfield
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sadrul at chromium.org

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.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list