Repository navigation
Cherry-pick(s) 8b7e574. rdar://191142094 - #78744
Open
webkit-opensource-integration wants to merge 1 commit into
Open
webkit-opensource-integration wants to merge 1 commit into
webkit-opensource-integration wants to merge 1 commit into
Conversation
Author
Author
|
At the time this pull request was created the following files were in conflict and need to be resolved:
|
Collaborator
|
EWS run on previous version of this PR (hash f878b86) Details |
…irect URL, merging cross-origin headers rdar://182127841 Reviewed by Chris Dumez. The network cache validated a redirect target's cache entry using originalRequest()'s URL instead of the URL of the request the entry actually belonged to, whenever that entry was cross-origin from the original request. The fix is that when the entry being revalidated is cross-origin from originalRequest(), use the entry's own request (URL) for revalidation instead. This request is saved in m_cacheEntryForValidationRequest so the correct request is also used later to update the cache when the network responds. In the test, the source URL 302s to a cross-origin target whose cached response needs revalidation. Before the fix, the revalidation request was sent to the source URL instead of the target's, so the source's server could forge a 304 and leak the cross-origin target's cached body to the page. Test: http/tests/cache/cached-redirect-cross-origin-leak.html * LayoutTests/http/tests/cache/cached-redirect-cross-origin-leak-expected.txt: Added. * LayoutTests/http/tests/cache/cached-redirect-cross-origin-leak.html: Added. * LayoutTests/http/tests/cache/resources/cached-redirect-to-cross-origin-leak-redirect.py: Added. * LayoutTests/http/tests/cache/resources/cached-redirect-to-cross-origin-leak-source.py: Added. * Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp: * Source/WebKit/NetworkProcess/NetworkResourceLoader.h: Originally-landed-as: 316606.490@safari-7625-branch (8b7e574). rdar://191142094
jelee53
force-pushed
the
integration/conflict/8b7e574_8b7e574_main
branch
from
October 29, 2026 07:03
f878b86 to
57dc4ad
Compare
Collaborator
|
EWS run on current version of this PR (hash 57dc4ad) Details |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integration has hit a merge conflict while cherry-picking rdar://191142094 to main. [8b7e574] caused a merge conflict.
ℹ️ Info
RC_REMOVE_SEC_ACCEL_*guards were removed with unifdef before cherry-picking, keeping only the code built when the macro is not defined.57dc4ad