Bug 196170 - Web Inspector: Page Weight indicator clears on pages with zero length resources (macrumors.com)
Summary: Web Inspector: Page Weight indicator clears on pages with zero length resourc...
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: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-22 18:49 PDT by Joseph Pecoraro
Modified: 2019-03-25 13:49 PDT (History)
4 users (show)

See Also:


Attachments
[PATCH] For EWS (6.00 KB, patch)
2019-03-22 18:51 PDT, Joseph Pecoraro
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>