New issue
Advanced search Search tips

Issue 799360 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Find "selects" matches after 1001 characters

Reported by switch...@gmail.com, Jan 5 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. Open any file in the Dev Tools Source File Editor
2. Identify a line that has more than 1001 characters (minified JS/CSS is a good place to look. Try xkcd.com/1361)
3. Identify a word that occurs more than once, but only after the first 1001 characters of the line (try 'bool')
4. Place your cursor on that line, and SLOWLY start typing that word.
5. Notice that Find *selects* the word once it finds it, moving the edit cursor beyond the word. Thus, as you continue to type the rest of the word, "Find" locates future instance of the word instead of the first instance you were on.

What is the expected behavior?
Find should match the first word that it comes across as the user is typing it, and not jump to other instances of the word.

What went wrong?
Find jumps to other instances of the word as the user types it (when it finds a word after the first 1001 characters). Ths is because  after 1001 characters, Find starts selecting the words (instead of highlighting), and thus moves the edit cursor after the end of the word.

There might actually be two bugs here (or not):
  1. Find selects matches after 1001 characters (leading to jumping to other instances of the word)
  2. Selecting a word moves the cursor to the end of the word

Did this work before? No 

Chrome version: 63.0.3239.132  Channel: stable
OS Version: OS X 10.11.4
Flash Version:
 
Labels: M-65 Triaged-ET Needs-Triage-M63 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome reported version #63.0.3239.132 and latest canary #65.0.3312.0.
This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Owner: einbinder@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment