Summary: | Web Inspector: Load InspectorResource mime type from CachedResource for 304 response | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexander Pavlov (apavlov) <apavlov> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bweinstein, commit-queue, joepeck, pfeldman, pmuellr, rik, timothy | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Alexander Pavlov (apavlov)
2009-11-25 06:26:31 PST
Created attachment 43843 [details]
patch
Comment on attachment 43843 [details] patch > + if (response.httpStatusCode() == 304) { > + CachedResource* cachedResource = cache()->resourceForURL(response.url().string()); > + if (cachedResource) > + m_mimeType = cachedResource->response().mimeType(); > + } Could you do this only in case network stack did not provide this information && 304? Created attachment 43845 [details]
patch (fixed)
Comment on attachment 43845 [details] patch (fixed) Clearing flags on attachment: 43845 Committed r51385: <http://trac.webkit.org/changeset/51385> All reviewed patches have been landed. Closing bug. |