Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add support for cache storage of blob response
https://bugs.webkit.org/show_bug.cgi?id=182637 Patch by Youenn Fablet <youenn@apple.com> on 2018-02-09 Reviewed by Brady Eidson. LayoutTests/imported/w3c: * web-platform-tests/service-workers/cache-storage/script-tests/cache-put.js: (cache_test.async): * web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https-expected.txt: * web-platform-tests/service-workers/cache-storage/window/cache-put.https-expected.txt: * web-platform-tests/service-workers/cache-storage/worker/cache-put.https-expected.txt: * web-platform-tests/service-workers/cache-storage/window/cache-put.https.html: Source/WebCore: Covered by updated WPT test. When putting a blob response in cache, create a readable stream to easily get the body. Make clear that caching form data is not supported. * Modules/cache/DOMCache.cpp: (WebCore::DOMCache::put): * Modules/fetch/FetchBody.h: (WebCore::FetchBody::isBlob const): (WebCore::FetchBody::isFormData const): * Modules/fetch/FetchResponse.h: Canonical link: https://commits.webkit.org/198457@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
71 additions
and 2 deletions.
- +14 −0 LayoutTests/imported/w3c/ChangeLog
- +8 −0 LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/script-tests/cache-put.js
- +1 −0 ...d/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https-expected.txt
- +2 −0 ...imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-put.https-expected.txt
- +13 −0 ...utTests/imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-put.https.html
- +1 −0 ...imported/w3c/web-platform-tests/service-workers/cache-storage/worker/cache-put.https-expected.txt
- +18 −0 Source/WebCore/ChangeLog
- +9 −0 Source/WebCore/Modules/cache/DOMCache.cpp
- +3 −2 Source/WebCore/Modules/fetch/FetchBody.h
- +2 −0 Source/WebCore/Modules/fetch/FetchResponse.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters