Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an
isThirdParty
argument when calling into `enableNetworkConnec…
…tionIntegrity` https://bugs.webkit.org/show_bug.cgi?id=246722 rdar://101316400 Reviewed by Youenn Fablet. Refactor some code that calls into `enableNetworkConnectionIntegrity`, such that we also pass in whether or not the resource request is third party. See below for more details. * Source/WebCore/platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::isThirdParty const): Move `NetworkDataTask::isThirdPartyRequest(const ResourceRequest&)` down into `ResourceRequestBase` as a const method, so that we don't need to reach into `NetworkDataTask` in order to perform this check. * Source/WebCore/platform/network/ResourceRequestBase.h: * Source/WebKit/NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::restrictRequestReferrerToOriginIfNeeded): (WebKit::NetworkDataTask::isThirdPartyRequest const): Deleted. Moved to `ResourceRequestBase` (see above). * Source/WebKit/NetworkProcess/NetworkDataTask.h: * Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.h: * Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::enableNetworkConnectionIntegrity): Add a boolean argument to represent whether or not the request is third party. (WebKit::NetworkDataTaskCocoa::applyCookiePolicyForThirdPartyCNAMECloaking): Adopt the `isThirdParty()` method. (WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa): * Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm: (WebKit::NetworkSessionCocoa::createWebSocketTask): Pass in whether or not the given request is third party. Canonical link: https://commits.webkit.org/255734@main
- Loading branch information
Showing
7 changed files
with
14 additions
and
12 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
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