-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch should compute its origin from its context #12169
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
youennf:eng/fetch-and-XHR-should-compute-their-origin-from-their-context
Mar 31, 2023
Merged
fetch should compute its origin from its context #12169
webkit-commit-queue
merged 1 commit into
WebKit:main
from
youennf:eng/fetch-and-XHR-should-compute-their-origin-from-their-context
Mar 31, 2023
Conversation
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
youennf
added
the
Page Loading
For bugs in page loading, including handling of network callbacks.
label
Mar 30, 2023
EWS run on previous version of this PR (hash 8cf6836) |
webkit-ews-buildbot
added
the
merging-blocked
Applied to prevent a change from being merged
label
Mar 30, 2023
youennf
changed the title
fetch and XHR should compute their origin from their context
fetch should compute its origin from its context
Mar 30, 2023
youennf
force-pushed
the
eng/fetch-and-XHR-should-compute-their-origin-from-their-context
branch
from
March 30, 2023 13:55
8cf6836
to
a208ea5
Compare
EWS run on current version of this PR (hash a208ea5) |
youennf
removed
the
merging-blocked
Applied to prevent a change from being merged
label
Mar 31, 2023
cdumez
approved these changes
Mar 31, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://bugs.webkit.org/show_bug.cgi?id=254734 rdar://problem/107414766 Reviewed by Chris Dumez. In case some security features are disabled, the referrer might not be same origin as the context origin for a fetch request. In that case, we should still stick to the context origin and not rely on referrer to compute the origin. We update CachedResourceRequest::updateReferrerAndOriginHeaders accordingly for fetch loads. * LayoutTests/http/wpt/fetch/origin-no-cors-disabled-expected.txt: Added. * LayoutTests/http/wpt/fetch/origin-no-cors-disabled.html: Added. * LayoutTests/http/wpt/fetch/resources/echo-origin-cors-disabled.py: Added. (main): * Source/WebCore/loader/cache/CachedResourceRequest.cpp: (WebCore::CachedResourceRequest::updateReferrerAndOriginHeaders): * Source/WebCore/page/Page.cpp: (WebCore::Page::addCORSDisablingPatternForTesting): * Source/WebCore/page/Page.h: * Source/WebCore/page/SecurityOrigin.h: * Source/WebCore/testing/Internals.cpp: (WebCore::Internals::grantUniversalAccess): (WebCore::Internals::disableCORSForURL): * Source/WebCore/testing/Internals.h: * Source/WebCore/testing/Internals.idl: Canonical link: https://commits.webkit.org/262403@main
webkit-commit-queue
force-pushed
the
eng/fetch-and-XHR-should-compute-their-origin-from-their-context
branch
from
March 31, 2023 15:11
a208ea5
to
878b8e7
Compare
Committed 262403@main (878b8e7): https://commits.webkit.org/262403@main Reviewed commits have been landed. Closing PR #12169 and removing active labels. |
webkit-commit-queue
removed
the
merge-queue
Applied to send a pull request to merge-queue
label
Mar 31, 2023
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.
878b8e7
a208ea5