Bug 196170

Summary: Web Inspector: Page Weight indicator clears on pages with zero length resources (macrumors.com)
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] For EWS timothy: review+

Description Joseph Pecoraro 2019-03-22 18:49:23 PDT
Page Weight indicator clears on pages with zero length resources (macrumors.com)

Steps to Reproduce:
1. Inspect macrumors.com
2. Reload
  => Page weight indicator eventually becomes "–" instead of a total value

Notes:
• A NaN creeps in from a resource with a body length of zero.
Comment 1 Joseph Pecoraro 2019-03-22 18:51:17 PDT
Created attachment 365792 [details]
[PATCH] For EWS

Using this to generate platform specific results.
Comment 2 Joseph Pecoraro 2019-03-22 19:14:42 PDT
Comment on attachment 365792 [details]
[PATCH] For EWS

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

> Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js:188
> +        console.assert(isNaN(delta), "Resource size change should never be NaN.");

Err, this should have been `!isNaN(...)`. But I'm just using this first patch to get results from the bots.
Comment 3 Joseph Pecoraro 2019-03-25 13:46:08 PDT
<https://trac.webkit.org/r243452>
Comment 4 Radar WebKit Bug Importer 2019-03-25 13:49:04 PDT
<rdar://problem/49227556>