commit | 4897b675229515658aa8b74ec586716fb203292b | [log] [tgz] |
---|---|---|
author | Ben Kelly <wanderview@chromium.org> | Thu Mar 07 16:01:18 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 07 16:01:18 2019 |
tree | 6664f7f941c53da3a2d831b65239f38da834b8b6 | |
parent | 72958b291a5cfe41c3a37d041f1b45d03a53f039 [diff] |
CacheStorage: Set the Response mime type based on stored content-header. Previously the Response mime type was never set when reading from a Cache. This resulted in empty string blob.type values and could also prevent code cache from being generated if a script Response was put back into a Cache. This CL makes us at least generate a mime type from the current content-type header. This is a partial solution since the mime type should technically be frozen at initial Response construction time even if the content-type header is later changed. To support that we will need to explicitly store a mime type on disk in the cache. This will be done later in crbug.com/938939. Bug: 937963,938939 Change-Id: Iabfe3909ff35957501ef33132af2a0c1f70c5c94 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506213 Commit-Queue: Ben Kelly <wanderview@chromium.org> Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#638581}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .