Bug 153632 - Web Inspector: Provide a way to clear the network panel
Summary: Web Inspector: Provide a way to clear the network panel
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
Keywords: GoodFirstBug, InRadar
Depends on:
Reported: 2016-01-28 20:24 PST by Nikita Vasilyev
Modified: 2016-01-29 17:48 PST (History)
9 users (show)

See Also:

[Image] Proposed change (65.14 KB, image/png)
2016-01-28 20:24 PST, Nikita Vasilyev
no flags Details
Patch (3.18 KB, patch)
2016-01-29 14:58 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 Nikita Vasilyev 2016-01-28 20:24:22 PST
Created attachment 270173 [details]
[Image] Proposed change

There seems to be no way to clear the network view.

We should at least provide a button (e.g. a trash can icon we already use in the console).

Use case:
"I want to clear the network panel of all requests up to now as it's just noise when I'm about to initiate a process that will kick off requests I am interested in."

Comment 1 Timothy Hatcher 2016-01-28 21:28:24 PST
Works for me.
Comment 2 Nikita Vasilyev 2016-01-28 21:31:43 PST
(In reply to comment #1)
> Works for me.

Do you mean that you agree with the proposed trash icon?
It is currently not there, I photoshopped it.
Comment 3 Timothy Hatcher 2016-01-28 22:38:39 PST
Yes, it would match the Timelines tab.
Comment 4 Devin Rousso 2016-01-29 14:58:59 PST
Created attachment 270258 [details]
Comment 5 WebKit Commit Bot 2016-01-29 15:12:47 PST
Comment on attachment 270258 [details]

Clearing flags on attachment: 270258

Committed r195846: <http://trac.webkit.org/changeset/195846>
Comment 6 WebKit Commit Bot 2016-01-29 15:12:51 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Joseph Pecoraro 2016-01-29 17:48:44 PST
Comment on attachment 270258 [details]

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

> Source/WebInspectorUI/UserInterface/Views/NetworkGridContentView.js:234
> +    _clearNetworkItems(event) {

Style: brace on newline