Update url_request_http_job.cc

This commit is contained in:
Alexander David Frick 2022-01-13 06:53:24 -06:00 committed by GitHub
parent 69c21ae803
commit 6562817c11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -741,8 +741,10 @@ void URLRequestHttpJob::SaveCookiesAndNotifyHeadersComplete(int result) {
request_->url(), request_->site_for_cookies())) {
force_ignore_site_for_cookies = true;
}
bool is_main_frame_navigation = IsolationInfo::RequestType::kMainFrame ==
request_->isolation_info().request_type();
bool is_main_frame_navigation =
IsolationInfo::RequestType::kMainFrame ==
request_->isolation_info().request_type() ||
request_->force_main_frame_for_same_site_cookies();
CookieOptions::SameSiteCookieContext same_site_context =
net::cookie_util::ComputeSameSiteContextForResponse(
request_->url_chain(), request_->site_for_cookies(),