From 809d5d8d118f1d3bcbd079740abc8e9b3f44beab Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 10 Sep 2025 11:40:51 +0200 Subject: [PATCH] Private network access content settings: enable kLocalNetworkAccessChecksWebRTC by default (#2161) Also activate the implementation of Chromium --- .../patches/Private-network-access-content-settings.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/patches/Private-network-access-content-settings.patch b/build/patches/Private-network-access-content-settings.patch index 5224e6a5..d0b0b8f2 100644 --- a/build/patches/Private-network-access-content-settings.patch +++ b/build/patches/Private-network-access-content-settings.patch @@ -12,10 +12,10 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html .../insecure_private_network.grdp | 18 ++++ .../insecure_private_network.inc | 25 +++++ .../INSECURE_PRIVATE_NETWORK.inc | 3 + - ...rivate-network-access-content-settings.inc | 1 + + ...rivate-network-access-content-settings.inc | 2 + services/network/cors/cors_url_loader.cc | 2 +- services/network/public/cpp/features.cc | 2 +- - 8 files changed, 175 insertions(+), 5 deletions(-) + 8 files changed, 176 insertions(+), 5 deletions(-) create mode 100644 components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/impl/BromiteInsecurePrivateNetworkContentSetting.java create mode 100644 components/browser_ui/strings/bromite_content_settings/insecure_private_network.grdp create mode 100644 components/content_settings/core/browser/bromite_content_settings/insecure_private_network.inc @@ -241,8 +241,9 @@ diff --git a/cromite_flags/services/network/public/cpp/features_cc/Private-netwo new file mode 100644 --- /dev/null +++ b/cromite_flags/services/network/public/cpp/features_cc/Private-network-access-content-settings.inc -@@ -0,0 +1 @@ +@@ -0,0 +1,2 @@ +SET_CROMITE_FEATURE_ENABLED(kLocalNetworkAccessChecks); ++SET_CROMITE_FEATURE_ENABLED(kLocalNetworkAccessChecksWebRTC); diff --git a/services/network/cors/cors_url_loader.cc b/services/network/cors/cors_url_loader.cc --- a/services/network/cors/cors_url_loader.cc +++ b/services/network/cors/cors_url_loader.cc