Bug 76543 - Web Inspector: omit compression field in HAR entries for resources coming from cache
Summary: Web Inspector: omit compression field in HAR entries for resources coming fro...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Andrey Kosyakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 07:36 PST by Andrey Kosyakov
Modified: 2012-01-18 09:14 PST (History)
10 users (show)

See Also:


Attachments
Patch (7.57 KB, patch)
2012-01-18 08:44 PST, Andrey Kosyakov
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kosyakov 2012-01-18 07:36:39 PST
As originally reported by Bryan McQuade, we incorrectly set compression for cached resources to original response size (sans re-validation headers for 304 resources):
====
You do set bodySize to 0 when from cache, as spec'd, but then you set
compression to the full uncompressed response size as a result.
====

HAR specification suggests that we omit the compression field when no info is available.
Comment 1 Andrey Kosyakov 2012-01-18 08:44:13 PST
Created attachment 122938 [details]
Patch
Comment 2 Andrey Kosyakov 2012-01-18 09:14:40 PST
Committed r105282: <http://trac.webkit.org/changeset/105282>