Bug 207322 - Web Inspector: REGRESSION(?): Search: selecting a DOM node search result switches to the Elements Tab
Summary: Web Inspector: REGRESSION(?): Search: selecting a DOM node search result swit...
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-05 20:30 PST by Devin Rousso
Modified: 2020-03-02 16:54 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.28 KB, patch)
2020-02-05 20:33 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2020-02-05 20:30:20 PST
# STEPS TO REPRODUCE:
1. inspect any page
2. search for "div" via the Search Tab
 => as soon as results start appearing in the Search Tab, Web Inspector will instantly switch to the Elements Tab and select the node that matches the search result
Comment 1 Devin Rousso 2020-02-05 20:33:39 PST
Created attachment 389934 [details]
Patch
Comment 2 BJ Burg 2020-02-06 13:35:16 PST
Comment on attachment 389934 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=389934&action=review

r=me

> Source/WebInspectorUI/ChangeLog:14
> +        such, we should update it's position in the `_recentTabContentViews` list so that we can use

So, the bug is that the Search Tab results content view wasn't the most recent in the list (the most recent being preferred over, say, Elements tab) ?
Comment 3 Devin Rousso 2020-02-06 13:43:28 PST
Comment on attachment 389934 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=389934&action=review

>> Source/WebInspectorUI/ChangeLog:14
>> +        such, we should update it's position in the `_recentTabContentViews` list so that we can use
> 
> So, the bug is that the Search Tab results content view wasn't the most recent in the list (the most recent being preferred over, say, Elements tab) ?

Yup!
Comment 4 WebKit Commit Bot 2020-02-06 14:15:40 PST
Comment on attachment 389934 [details]
Patch

Clearing flags on attachment: 389934

Committed r255980: <https://trac.webkit.org/changeset/255980>
Comment 5 WebKit Commit Bot 2020-02-06 14:15:41 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2020-02-06 14:16:15 PST
<rdar://problem/59236869>
Comment 7 Jon Lee 2020-02-07 20:23:31 PST
Reopening. This was reverted by https://trac.webkit.org/changeset/256086/webkit in b207422.
Comment 8 Devin Rousso 2020-03-02 16:54:58 PST
This will be resolved by <https://webkit.org/b/207317>.