Bug 104927 - Web Inspector: "Search sources" click link fails
Summary: Web Inspector: "Search sources" click link fails
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 09:53 PST by johnjbarton
Modified: 2014-12-12 13:43 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnjbarton 2012-12-13 09:53:16 PST
This is a long standing bug in navigating the multi-file search results.  Very frustrating and common.

1. Open devtools on devtools in a Chromium (from source) build.
2. Shift Control F and type "scope" into the "Search sources" input box.
3. Scroll to the bottom of the results, you should see a disclosure triangle and ScriptsSearchScope.js.
4. Open the triangle for ScriptsSearchScope.js. You should see one result, the rest are hidden below (ok that's another bug, we should see as many results as will fit in the window).
5. Click on the first result. Navigation succeeds.
6. Click on the last result. 

Expected: navigation to the corresponding line.
Actual: The search results panel does something funky. Scroll to top?

Second click on last line succeeds.

First line of results for ScriptsSearchScope.js click again, suceeds, but the last result again fails.

I've not looked at the code, but my guess is that the failing case does partial work, but fails to bring the result in to view. Thus the next click after a failure succeeds even though a click on the same result line might fail at another time. This context-dependence is why this bug is hard to reproduce and why quick testing may lead a developer to think the bug is fixed.
Comment 1 Brian Burg 2014-12-12 13:41:30 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.