Bug 191174 - Web Inspector: Network: remove unnecessary media event tracking
Summary: Web Inspector: Network: remove unnecessary media event tracking
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: 189773
Blocks:
  Show dependency treegraph
 
Reported: 2018-11-01 15:27 PDT by Devin Rousso
Modified: 2018-11-01 17:28 PDT (History)
6 users (show)

See Also:


Attachments
Patch (17.75 KB, patch)
2018-11-01 15:37 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
[Image] After Patch is applied (1.25 MB, image/png)
2018-11-01 15:37 PDT, Devin Rousso
no flags Details
Patch (18.46 KB, patch)
2018-11-01 16:47 PDT, 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 2018-11-01 15:27:13 PDT
There's no reason to show event "bubbles" for events that have nothing to do with network activity (e.g. "volumechanged").
Comment 1 Devin Rousso 2018-11-01 15:37:27 PDT
Created attachment 353652 [details]
Patch
Comment 2 Devin Rousso 2018-11-01 15:37:59 PDT
Created attachment 353653 [details]
[Image] After Patch is applied
Comment 3 Joseph Pecoraro 2018-11-01 16:06:45 PDT
Comment on attachment 353652 [details]
Patch

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

r=me

> Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.css:91
> +.network-table .data-container .cell.name .range {
> +    font-style: italic;
> +}

I'm not sure I like the italics here. For tree elements we typically put a subtitle in a lighter gray color and not italicize. I'm not sure what would be best we can experiment.

> Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js:1103
> +        setTimeout(() => {
> +            if (this._waterfallPopover)
> +                this._waterfallPopover.resize();
> +        });

Why in a setTimeout? Should this be a debounce?

> Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js:1929
> +        this._handleMousedownWaterfall(nodeEntry, popoverContentElement, (cell) => {
> +            let domEventElement = nodeEntry.domEventElements.get(domEvents[0]);

It is weird to name this a `getTargetElementFunction` when it may also change the contents of the popover. I see why its happening though. Maybe a more generic `resizeAndPositionHandler`/`repositionAndResizeHandler` might be better?
Comment 4 Devin Rousso 2018-11-01 16:31:42 PDT
Comment on attachment 353652 [details]
Patch

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

>> Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js:1103
>> +        });
> 
> Why in a setTimeout? Should this be a debounce?

I want to call this function after the `WI.Table` has finished `layout`, as it's at that point that the elements are in the DOM.  I think the better approach is to introduce another base function to `WI.View` that gets called once a subtree has finished `layout`.
Comment 5 Devin Rousso 2018-11-01 16:47:35 PDT
Created attachment 353661 [details]
Patch
Comment 6 WebKit Commit Bot 2018-11-01 17:27:26 PDT
Comment on attachment 353661 [details]
Patch

Clearing flags on attachment: 353661

Committed r237708: <https://trac.webkit.org/changeset/237708>
Comment 7 WebKit Commit Bot 2018-11-01 17:27:27 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-11-01 17:28:29 PDT
<rdar://problem/45748484>