Bug 191916 - Web Inspector: "No Filter Results" in navigation sidebar should have a button to clear filters
Summary: Web Inspector: "No Filter Results" in navigation sidebar should have a button...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-22 15:11 PST by Devin Rousso
Modified: 2018-11-26 11:03 PST (History)
6 users (show)

See Also:


Attachments
Patch (10.13 KB, patch)
2018-11-23 10:21 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
[Image] After Patch is applied (980.95 KB, image/png)
2018-11-23 10:22 PST, Devin Rousso
no flags Details
Archive of layout-test-results from ews126 for ios-simulator-wk2 (2.62 MB, application/zip)
2018-11-23 16:52 PST, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2018-11-22 15:11:34 PST
We add a button in other places (e.g. Network tab, Audit tab), and we should be consistent.
Comment 1 Devin Rousso 2018-11-23 10:21:43 PST
Created attachment 355524 [details]
Patch
Comment 2 Devin Rousso 2018-11-23 10:22:03 PST
Created attachment 355525 [details]
[Image] After Patch is applied
Comment 3 EWS Watchlist 2018-11-23 16:52:09 PST Comment hidden (obsolete)
Comment 4 EWS Watchlist 2018-11-23 16:52:11 PST Comment hidden (obsolete)
Comment 5 Joseph Pecoraro 2018-11-26 09:22:17 PST
Comment on attachment 355524 [details]
Patch

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

r=me

> Source/WebInspectorUI/UserInterface/Views/FilterBarButton.js:46
> +    toggle(value)

Would it be easier to add a new function? Reset?
Comment 6 Devin Rousso 2018-11-26 10:15:06 PST
Comment on attachment 355524 [details]
Patch

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

>> Source/WebInspectorUI/UserInterface/Views/FilterBarButton.js:46
>> +    toggle(value)
> 
> Would it be easier to add a new function? Reset?

I think this better matches the DOM `classList` API, so I'd prefer to keep it as is.  Additionally, this means that there is a single path for all functionality, which should make future maintenance easier :)
Comment 7 WebKit Commit Bot 2018-11-26 11:01:13 PST
Comment on attachment 355524 [details]
Patch

Clearing flags on attachment: 355524

Committed r238502: <https://trac.webkit.org/changeset/238502>
Comment 8 WebKit Commit Bot 2018-11-26 11:01:14 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-11-26 11:03:44 PST
<rdar://problem/46249823>