New issue
Advanced search Search tips

Issue 761019 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

"Go to symbol" misses the first function and prefers a worse match if it contains all the typed chars

Reported by woxxom@gmail.com, Aug 31 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
1. open the attached test.html
2. open devtools
3. reload the page
4. press Ctrl-Shift-O to invoke "Go to symbol"
5. type "first", observe
6. delete the text you've typed and type "somefun", observe

What is the expected behavior?
* "first" is the first in the list
* "someFunction1" is the first in the list

What went wrong?
* "first" is absent
* "IrrelevantFunctionSeekOrMissEKGFreqUnderflow" is the first in the list

Did this work before? No 

Chrome version: 60.0.3112.113  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 26.0 r0

As for the second observation, I suggest to prioritize results matched as:
* prefix +10 weight
* contiguous match +5 weight
* letter case match when the user typed in different letter cases +20 weight

P.S. The feature always worked this way since it appeared in M59 as far as I can tell.
 
test.html
181 bytes View Download
bad.png
4.6 KB View Download

Comment 1 by woxxom@gmail.com, Aug 31 2017

Note: in steps 5 and 6 don't type the surrounding doublequotes; just type what's inside.
Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment