mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 122.0.6261.0 (#1250580)
Frame identifiers have changed from int64_t to string type. This is due to https://crbug.com/1502660 which removes access to frame routing IDs in the renderer process. New cross-process frame identifiers are 160-bit values (32-bit child process ID + 128-bit local frame token) and most easily represented as strings. All other frame-related expectations and behaviors remain the same.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
diff --git chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
|
||||
index 7df34f2bc2409..fdc9d91e9d29b 100644
|
||||
index 101044d12aa89..795fb5f2d0738 100644
|
||||
--- chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
|
||||
+++ chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
|
||||
@@ -23,6 +23,7 @@
|
||||
@ -10,7 +10,7 @@ index 7df34f2bc2409..fdc9d91e9d29b 100644
|
||||
#include "chrome/browser/browser_process.h"
|
||||
#include "chrome/browser/enterprise/connectors/analysis/analysis_settings.h"
|
||||
#include "chrome/browser/enterprise/connectors/analysis/content_analysis_dialog.h"
|
||||
@@ -246,6 +247,9 @@ bool ContentAnalysisDelegate::IsEnabled(Profile* profile,
|
||||
@@ -265,6 +266,9 @@ bool ContentAnalysisDelegate::IsEnabled(Profile* profile,
|
||||
GURL url,
|
||||
Data* data,
|
||||
AnalysisConnector connector) {
|
||||
@ -20,33 +20,11 @@ index 7df34f2bc2409..fdc9d91e9d29b 100644
|
||||
auto* service = ConnectorsServiceFactory::GetForBrowserContext(profile);
|
||||
// If the corresponding Connector policy isn't set, don't perform scans.
|
||||
if (!service || !service->IsConnectorEnabled(connector))
|
||||
diff --git chrome/browser/feedback/system_logs/log_sources/related_website_sets_source.cc chrome/browser/feedback/system_logs/log_sources/related_website_sets_source.cc
|
||||
index e6f1e81de0eb4..1b2333023320a 100644
|
||||
--- chrome/browser/feedback/system_logs/log_sources/related_website_sets_source.cc
|
||||
+++ chrome/browser/feedback/system_logs/log_sources/related_website_sets_source.cc
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "base/json/json_writer.h"
|
||||
#include "base/values.h"
|
||||
+#include "cef/libcef/features/runtime.h"
|
||||
#include "chrome/browser/first_party_sets/first_party_sets_policy_service.h"
|
||||
#include "chrome/browser/first_party_sets/first_party_sets_policy_service_factory.h"
|
||||
#include "chrome/browser/profiles/profile.h"
|
||||
@@ -50,6 +51,9 @@ const char* GetSiteType(const net::SiteType type) {
|
||||
// "PrimarySites": [ "https://example2.com", "https://example2.com.co" ]
|
||||
// } ]
|
||||
std::string ComputeRelatedWebsiteSetsInfo() {
|
||||
+ if (cef::IsAlloyRuntimeEnabled()) {
|
||||
+ return "";
|
||||
+ }
|
||||
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
Profile* profile = ProfileManager::GetActiveUserProfile();
|
||||
#else
|
||||
diff --git chrome/browser/net/profile_network_context_service.cc chrome/browser/net/profile_network_context_service.cc
|
||||
index 5923117661980..c363f0039d243 100644
|
||||
index 62d54608cfe39..b0c5e3970de03 100644
|
||||
--- chrome/browser/net/profile_network_context_service.cc
|
||||
+++ chrome/browser/net/profile_network_context_service.cc
|
||||
@@ -22,6 +22,7 @@
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "base/trace_event/trace_event.h"
|
||||
#include "build/build_config.h"
|
||||
#include "build/chromeos_buildflags.h"
|
||||
@ -54,7 +32,7 @@ index 5923117661980..c363f0039d243 100644
|
||||
#include "chrome/browser/browser_features.h"
|
||||
#include "chrome/browser/browser_process.h"
|
||||
#include "chrome/browser/content_settings/cookie_settings_factory.h"
|
||||
@@ -271,8 +272,10 @@ ProfileNetworkContextService::ProfileNetworkContextService(Profile* profile)
|
||||
@@ -275,8 +276,10 @@ ProfileNetworkContextService::ProfileNetworkContextService(Profile* profile)
|
||||
base::Unretained(this)));
|
||||
cookie_settings_ = CookieSettingsFactory::GetForProfile(profile);
|
||||
cookie_settings_observation_.Observe(cookie_settings_.get());
|
||||
@ -67,7 +45,7 @@ index 5923117661980..c363f0039d243 100644
|
||||
|
||||
DisableQuicIfNotAllowed();
|
||||
|
||||
@@ -442,6 +445,9 @@ void ProfileNetworkContextService::OnTruncatedCookieBlockingChanged() {
|
||||
@@ -468,6 +471,9 @@ void ProfileNetworkContextService::OnTruncatedCookieBlockingChanged() {
|
||||
|
||||
void ProfileNetworkContextService::OnFirstPartySetsEnabledChanged(
|
||||
bool enabled) {
|
||||
@ -77,7 +55,7 @@ index 5923117661980..c363f0039d243 100644
|
||||
// Update all FPS Access Delegates on the FPS service to be `enabled`.
|
||||
first_party_sets::FirstPartySetsPolicyServiceFactory::GetForBrowserContext(
|
||||
profile_)
|
||||
@@ -814,9 +820,26 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
@@ -913,9 +919,26 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
network_context_params->cookie_manager_params =
|
||||
CreateCookieManagerParams(profile_, *cookie_settings_);
|
||||
|
||||
@ -105,7 +83,7 @@ index 5923117661980..c363f0039d243 100644
|
||||
PrefService* local_state = g_browser_process->local_state();
|
||||
// Configure the HTTP cache path and size.
|
||||
base::FilePath base_cache_path;
|
||||
@@ -825,15 +848,14 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
@@ -924,15 +947,14 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
local_state->GetFilePath(prefs::kDiskCacheDir);
|
||||
if (!disk_cache_dir.empty())
|
||||
base_cache_path = disk_cache_dir.Append(base_cache_path.BaseName());
|
||||
@ -125,7 +103,7 @@ index 5923117661980..c363f0039d243 100644
|
||||
network_context_params->file_paths->data_directory =
|
||||
path.Append(chrome::kNetworkDataDirname);
|
||||
network_context_params->file_paths->unsandboxed_data_path = path;
|
||||
@@ -986,6 +1008,7 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
@@ -1104,6 +1126,7 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
network_context_params->block_trust_tokens =
|
||||
anti_abuse_content_setting == CONTENT_SETTING_BLOCK;
|
||||
|
||||
@ -133,7 +111,7 @@ index 5923117661980..c363f0039d243 100644
|
||||
network_context_params->first_party_sets_access_delegate_params =
|
||||
network::mojom::FirstPartySetsAccessDelegateParams::New();
|
||||
network_context_params->first_party_sets_access_delegate_params->enabled =
|
||||
@@ -1002,6 +1025,7 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
@@ -1120,6 +1143,7 @@ void ProfileNetworkContextService::ConfigureNetworkContextParamsInternal(
|
||||
GetForBrowserContext(profile_);
|
||||
DCHECK(fps_service);
|
||||
fps_service->AddRemoteAccessDelegate(std::move(fps_access_delegate_remote));
|
||||
@ -186,7 +164,7 @@ index 77522f65b7b6e..51cc2d60d4b8d 100644
|
||||
GetInstance()->GetServiceForBrowserContext(profile, true));
|
||||
}
|
||||
diff --git net/cookies/cookie_monster.cc net/cookies/cookie_monster.cc
|
||||
index 0c3ce2e289b59..7ea3744e33b60 100644
|
||||
index 643279afbb341..aadd242e17cd0 100644
|
||||
--- net/cookies/cookie_monster.cc
|
||||
+++ net/cookies/cookie_monster.cc
|
||||
@@ -552,6 +552,25 @@ void CookieMonster::SetCookieableSchemes(
|
||||
@ -216,7 +194,7 @@ index 0c3ce2e289b59..7ea3744e33b60 100644
|
||||
void CookieMonster::SetPersistSessionCookies(bool persist_session_cookies) {
|
||||
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
|
||||
diff --git net/cookies/cookie_monster.h net/cookies/cookie_monster.h
|
||||
index 40d12ecb55155..b87a1cb86f85c 100644
|
||||
index 6871ed30edce4..594c0c5b5f4d5 100644
|
||||
--- net/cookies/cookie_monster.h
|
||||
+++ net/cookies/cookie_monster.h
|
||||
@@ -208,6 +208,8 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
||||
@ -245,10 +223,10 @@ index 61fd008fc067e..73909be088278 100644
|
||||
// reset to null.
|
||||
const CookieAccessDelegate* cookie_access_delegate() const {
|
||||
diff --git services/network/cookie_manager.cc services/network/cookie_manager.cc
|
||||
index 708a4ae904d88..dc63376f7a50e 100644
|
||||
index e5e410525d8a6..ca1225642ef64 100644
|
||||
--- services/network/cookie_manager.cc
|
||||
+++ services/network/cookie_manager.cc
|
||||
@@ -303,14 +303,9 @@ void CookieManager::AllowFileSchemeCookies(
|
||||
@@ -310,14 +310,9 @@ void CookieManager::AllowFileSchemeCookies(
|
||||
AllowFileSchemeCookiesCallback callback) {
|
||||
OnSettingsWillChange();
|
||||
|
||||
@ -267,10 +245,10 @@ index 708a4ae904d88..dc63376f7a50e 100644
|
||||
|
||||
void CookieManager::SetForceKeepSessionState() {
|
||||
diff --git services/network/network_context.cc services/network/network_context.cc
|
||||
index 5ac5baaa6a86c..77575748bfacf 100644
|
||||
index 4547a0dc69562..d03e771ee52b8 100644
|
||||
--- services/network/network_context.cc
|
||||
+++ services/network/network_context.cc
|
||||
@@ -2506,16 +2506,20 @@ URLRequestContextOwner NetworkContext::MakeURLRequestContext(
|
||||
@@ -2385,16 +2385,20 @@ URLRequestContextOwner NetworkContext::MakeURLRequestContext(
|
||||
network_service_->network_quality_estimator());
|
||||
}
|
||||
|
||||
@ -299,10 +277,10 @@ index 5ac5baaa6a86c..77575748bfacf 100644
|
||||
base::FeatureList::IsEnabled(features::kFledgePst)) {
|
||||
trust_token_store_ = std::make_unique<PendingTrustTokenStore>();
|
||||
diff --git services/network/public/mojom/network_context.mojom services/network/public/mojom/network_context.mojom
|
||||
index 93c755060193d..0ee9441892cda 100644
|
||||
index 3096bd7d6719b..1c383acba0207 100644
|
||||
--- services/network/public/mojom/network_context.mojom
|
||||
+++ services/network/public/mojom/network_context.mojom
|
||||
@@ -371,6 +371,9 @@ struct NetworkContextParams {
|
||||
@@ -358,6 +358,9 @@ struct NetworkContextParams {
|
||||
// cookies. Otherwise it should be false.
|
||||
bool persist_session_cookies = false;
|
||||
|
||||
|
Reference in New Issue
Block a user