[wpt-sync] Sync PR 15703 - CacheStorage: Set the Response mime type based on stored content-header.
Categories
(Testing :: web-platform-tests, enhancement, P4)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 15703 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/15703
Details from upstream follow.
Ben Kelly <wanderview@chromium.org> wrote:
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 if a content-type header
is available. This is a partial solution since the mime type could also
be set via sniffing at load time. 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
Change-Id: Iabfe3909ff35957501ef33132af2a0c1f70c5c94Reviewed-on: https://chromium-review.googlesource.com/1506213
WPT-Export-Revision: 87230357fabbe32cdf4c6a6515623deb2e8959d2
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f6ac89e9c244
https://hg.mozilla.org/mozilla-central/rev/d783e54adf7f
Description
•