New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 758438 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

BackwardsCharacterIterator might yield wrong position

Reported by ti...@chromium.org, Aug 24 2017

Issue description

While working on issue 751408 we discovered that BackwardsCharacterIterator seems to go forward instead of backwards in the following situation.

DOM:

BODY
  INPUT
    #shadow-root
*     DIV id="inner-editor" (editable)
        #text "John Smith"

After construction in
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/editing/SurroundingText.cpp?rcl=479876aacce1dedb39056a43c97d0777103a7eb6&l=94

backwards_iterator.EndPosition() is
  DIV id="inner-editor" (editable)@offsetInAnchor[0]

after Advance() it becomes
  #text "John Smith"@offsetInAnchor[0]

which comes after. Later this causes breakage in TextIterator constructor that requires that start <= end.
 
Project Member

Comment 1 by sheriffbot@chromium.org, Aug 24

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment