We used to compute response body size as resource.transferSize - resource.responseHeadersSize. Resource.transefrSize returns 0 for cached resources, so we were getting negative values in this case. The correct value to return is 0 as per HAR spec v1.2:
bodySize [number] - Size of the received response body in bytes. Set to zero in case of responses coming from the cache (304).
Created attachment 123549 [details]
Committed r105619: <http://trac.webkit.org/changeset/105619>
Reopening to attach new patch.
Created attachment 126963 [details]
Attachment 126963 [details] did not pass style-queue:
Failed to run "['Tools/Scripts/update-webkit']" exit_code: 9
First, rewinding head to replay your work on top of it...
Applying: [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
Using index info to reconstruct a base tree...
<stdin>:1578: trailing whitespace.
<stdin>:1647: trailing whitespace.
<stdin>:1657: trailing whitespace.
<stdin>:1672: trailing whitespace.
<stdin>:1674: trailing whitespace.
warning: squelched 7 whitespace errors
warning: 12 lines add whitespace errors.
Falling back to patching base and 3-way merge...
warning: too many files (created: 168776 deleted: 3), skipping inexact rename detection
CONFLICT (content): Merge conflict in LayoutTests/ChangeLog
CONFLICT (content): Merge conflict in Source/WebCore/ChangeLog
CONFLICT (content): Merge conflict in Source/WebKit2/ChangeLog
CONFLICT (content): Merge conflict in Tools/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
rebase refs/remotes/origin/master: command returned error: 1
Died at Tools/Scripts/update-webkit line 164.
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 126963 [details]
Please disregard this, accidently uploaded a patch to the wrong bug.
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.