Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
CachedRawResource is not handling incremental data computation correctly
https://bugs.webkit.org/show_bug.cgi?id=184936 Reviewed by Chris Dumez. Source/WebCore: Covered by updated test. The previous logic was handling the case of only one additional segment being added to the SharedBuffer. In service worker case, a SharedBuffer may contain more than one segment. This is fixed by iterating until all new data is sent to clients. * loader/cache/CachedRawResource.cpp: (WebCore::CachedRawResource::updateBuffer): LayoutTests: * http/tests/workers/service/resources/service-worker-fetch-worker.js: (stringToBuffer): (event.event.request.url.endsWith): * http/tests/workers/service/resources/service-worker-fetch.js: (async.test): * http/tests/workers/service/service-worker-fetch.https-expected.txt: Canonical link: https://commits.webkit.org/200477@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
67 additions
and 6 deletions.
- +14 −0 LayoutTests/ChangeLog
- +24 −0 LayoutTests/http/tests/workers/service/resources/service-worker-fetch-worker.js
- +4 −1 LayoutTests/http/tests/workers/service/resources/service-worker-fetch.js
- +1 −0 LayoutTests/http/tests/workers/service/service-worker-fetch.https-expected.txt
- +16 −0 Source/WebCore/ChangeLog
- +8 −5 Source/WebCore/loader/cache/CachedRawResource.cpp
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