mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 01:26:03 +01:00
66648c2343
- Remove CefRequestContextHandler::OnBeforePluginLoad and CefRequestContext::PurgePluginListCache (fixes issue #3047). These methods stopped being relevant after the removal of Flash support in January 2021. The last remaining PPAPI plugin (PDF viewer) will switch to a non-plugin implementation in the near future (see https://crbug.com/702993#c58) and functionality related to plugin filtering has already been removed in https://crrev.com/343ae351c9.
40 lines
1.9 KiB
Diff
40 lines
1.9 KiB
Diff
diff --git net/base/load_flags_list.h net/base/load_flags_list.h
|
|
index 96d1a51ec1078..e8120a818b1f2 100644
|
|
--- net/base/load_flags_list.h
|
|
+++ net/base/load_flags_list.h
|
|
@@ -101,3 +101,6 @@ LOAD_FLAG(RESTRICTED_PREFETCH, 1 << 15)
|
|
// is considered privileged, and therefore this flag must only be set from a
|
|
// trusted process.
|
|
LOAD_FLAG(CAN_USE_RESTRICTED_PREFETCH, 1 << 16)
|
|
+
|
|
+// This load will not send any cookies. For CEF usage.
|
|
+LOAD_FLAG(DO_NOT_SEND_COOKIES, 1 << 17)
|
|
diff --git net/url_request/url_request_http_job.cc net/url_request/url_request_http_job.cc
|
|
index 2e1817d58e838..e06bad87e88a1 100644
|
|
--- net/url_request/url_request_http_job.cc
|
|
+++ net/url_request/url_request_http_job.cc
|
|
@@ -588,7 +588,8 @@ void URLRequestHttpJob::AddCookieHeaderAndStart() {
|
|
// Read cookies whenever allow_credentials() is true, even if the PrivacyMode
|
|
// is being overridden by NetworkDelegate and will eventually block them, as
|
|
// blocked cookies still need to be logged in that case.
|
|
- if (cookie_store && request_->allow_credentials()) {
|
|
+ if (cookie_store && request_->allow_credentials() &&
|
|
+ !(request_info_.load_flags & LOAD_DO_NOT_SEND_COOKIES)) {
|
|
bool force_ignore_site_for_cookies =
|
|
request_->force_ignore_site_for_cookies();
|
|
if (cookie_store->cookie_access_delegate() &&
|
|
diff --git services/network/public/cpp/resource_request.cc services/network/public/cpp/resource_request.cc
|
|
index da7f97cf0ec17..9b305323df042 100644
|
|
--- services/network/public/cpp/resource_request.cc
|
|
+++ services/network/public/cpp/resource_request.cc
|
|
@@ -266,7 +266,8 @@ bool ResourceRequest::EqualsForTesting(const ResourceRequest& request) const {
|
|
}
|
|
|
|
bool ResourceRequest::SendsCookies() const {
|
|
- return credentials_mode == network::mojom::CredentialsMode::kInclude;
|
|
+ return credentials_mode == network::mojom::CredentialsMode::kInclude &&
|
|
+ !(load_flags & net::LOAD_DO_NOT_SEND_COOKIES);
|
|
}
|
|
|
|
bool ResourceRequest::SavesCookies() const {
|