Bug 1935088 - set thirdparty contexts for fetch keepalive requests. r=timhuang

Differential Revision: https://phabricator.services.mozilla.com/D231754
This commit is contained in:
smayya
2025-01-07 14:41:55 +00:00
parent ff3001beb0
commit 76b65f790f
6 changed files with 36 additions and 13 deletions

View File

@@ -276,7 +276,12 @@ RefPtr<FetchServicePromises> FetchService::FetchInstance::Fetch() {
}
mFetchDriver->SetAssociatedBrowsingContextID(
args.mAssociatedBrowsingContextID);
mFetchDriver->SetIsThirdPartyWorker(Some(args.mIsThirdPartyContext));
mFetchDriver->SetIsThirdPartyContext(Some(args.mIsThirdPartyContext));
}
if (mArgsType == FetchArgsType::MainThreadFetch) {
auto& args = mArgs.as<MainThreadFetchArgs>();
mFetchDriver->SetIsThirdPartyContext(Some(args.mIsThirdPartyContext));
}
mFetchDriver->EnableNetworkInterceptControl();