Bug 153632

Summary: Web Inspector: Provide a way to clear the network panel
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Devin Rousso <drousso>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, drousso, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: GoodFirstBug, InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] Proposed change
none
Patch none

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."

<rdar://problem/23317773>
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]
Patch
Comment 5 WebKit Commit Bot 2016-01-29 15:12:47 PST
Comment on attachment 270258 [details]
Patch

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]
Patch

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