Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Fetch API] Headers iteration should not happen on cached headers list
https://bugs.webkit.org/show_bug.cgi?id=246526 rdar://problem/101235580 Reviewed by Chris Dumez. We introduce a change counter that is incremented anytime a JS API is mutating the headers (append, delete, set). We recreate the header list as needed, either on the first time or if the change counter tells us to do so. Covered by resynced WPT tests. * LayoutTests/imported/w3c/web-platform-tests/fetch/api/headers/headers-basic.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/fetch/api/headers/headers-basic.any.js: (test): * LayoutTests/imported/w3c/web-platform-tests/fetch/api/headers/headers-basic.any.worker-expected.txt: * Source/WebCore/Modules/fetch/FetchHeaders.cpp: (WebCore::FetchHeaders::append): (WebCore::FetchHeaders::remove): (WebCore::FetchHeaders::set): (WebCore::FetchHeaders::Iterator::next): (WebCore::FetchHeaders::Iterator::Iterator): * Source/WebCore/Modules/fetch/FetchHeaders.h: Canonical link: https://commits.webkit.org/255639@main
- Loading branch information
Showing
5 changed files
with
76 additions
and
4 deletions.
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