diff --git a/config_bundles/common/patch_order.list b/config_bundles/common/patch_order.list index ccbb8a7a..c78949cb 100644 --- a/config_bundles/common/patch_order.list +++ b/config_bundles/common/patch_order.list @@ -108,6 +108,7 @@ ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch ungoogled-chromium/fix-building-without-safebrowsing.patch ungoogled-chromium/searx.patch ungoogled-chromium/remove-third-party-analytics.patch +ungoogled-chromium/enable-flag-async-dns.patch bromite/fingerprinting-flags-client-rects-and-measuretext.patch bromite/flag-dns-over-https.patch diff --git a/patches/bromite/flag-dns-over-https.patch b/patches/bromite/flag-dns-over-https.patch index 8588424c..b54110f2 100644 --- a/patches/bromite/flag-dns-over-https.patch +++ b/patches/bromite/flag-dns-over-https.patch @@ -42,9 +42,9 @@ See also: https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-02.txt const FeatureEntry::Choice kNumRasterThreadsChoices[] = { {flags_ui::kGenericExperimentChoiceDefault, "", ""}, {flag_descriptions::kNumRasterThreadsOne, switches::kNumRasterThreads, "1"}, -@@ -3552,6 +3557,10 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3550,6 +3555,10 @@ const FeatureEntry kFeatureEntries[] = { + flag_descriptions::kAsyncDnsDescription, kOsAll, FEATURE_VALUE_TYPE(features::kAsyncDns)}, - #endif // defined(OS_ANDROID) + {"enable-dns-over-https", flag_descriptions::kDnsOverHttpsName, + flag_descriptions::kDnsOverHttpsDescription, kOsAll, @@ -87,7 +87,7 @@ See also: https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-02.txt #include "components/policy/core/common/policy_namespace.h" #include "components/policy/core/common/policy_service.h" #include "components/policy/policy_constants.h" -@@ -369,11 +370,12 @@ void SystemNetworkContextManager::Regist +@@ -370,11 +371,12 @@ void SystemNetworkContextManager::Regist std::make_unique(); std::unique_ptr default_doh_server_methods = std::make_unique(); diff --git a/patches/inox-patchset/0006-modify-default-prefs.patch b/patches/inox-patchset/0006-modify-default-prefs.patch index c48c7fd6..4ac85ac9 100644 --- a/patches/inox-patchset/0006-modify-default-prefs.patch +++ b/patches/inox-patchset/0006-modify-default-prefs.patch @@ -102,18 +102,6 @@ $i18nRaw{resetPageFeedback} ---- a/chrome/browser/net/system_network_context_manager.cc -+++ b/chrome/browser/net/system_network_context_manager.cc -@@ -362,8 +362,7 @@ SystemNetworkContextManager::~SystemNetw - - void SystemNetworkContextManager::RegisterPrefs(PrefRegistrySimple* registry) { - // DnsClient prefs. -- registry->RegisterBooleanPref(prefs::kBuiltInDnsClientEnabled, -- ShouldEnableAsyncDns()); -+ registry->RegisterBooleanPref(prefs::kBuiltInDnsClientEnabled, false); - // Set default DNS over HTTPS server list and server methods, based on whether - // or not the DNS over HTTPS feature is enabled. - std::unique_ptr default_doh_servers = --- a/chrome/browser/signin/signin_promo.cc +++ b/chrome/browser/signin/signin_promo.cc @@ -384,8 +384,8 @@ void ForceWebBasedSigninFlowForTesting(b diff --git a/patches/ungoogled-chromium/enable-flag-async-dns.patch b/patches/ungoogled-chromium/enable-flag-async-dns.patch new file mode 100644 index 00000000..decd4381 --- /dev/null +++ b/patches/ungoogled-chromium/enable-flag-async-dns.patch @@ -0,0 +1,30 @@ +# Enables the --enable-async-dns feature on all platforms +# The async DNS is Chromium's built-in DNS client. It is needed to enable +# DNS over HTTPS. + +--- a/chrome/browser/about_flags.cc ++++ b/chrome/browser/about_flags.cc +@@ -3537,11 +3537,9 @@ const FeatureEntry kFeatureEntries[] = { + kSpeculativePreconnectFeatureVariations, + "SpeculativePreconnectValidation")}, + +-#if defined(OS_ANDROID) + {"enable-async-dns", flag_descriptions::kAsyncDnsName, +- flag_descriptions::kAsyncDnsDescription, kOsAndroid, ++ flag_descriptions::kAsyncDnsDescription, kOsAll, + FEATURE_VALUE_TYPE(features::kAsyncDns)}, +-#endif // defined(OS_ANDROID) + + {"enable-overflow-icons-for-media-controls", + flag_descriptions::kOverflowIconsForMediaControlsName, +--- a/chrome/common/chrome_features.cc ++++ b/chrome/common/chrome_features.cc +@@ -77,7 +77,7 @@ const base::Feature kAssetDownloadSugges + // Enables the built-in DNS resolver. + const base::Feature kAsyncDns { + "AsyncDns", +-#if defined(OS_CHROMEOS) || defined(OS_MACOSX) || defined(OS_ANDROID) ++#if defined(OS_CHROMEOS) || defined(OS_ANDROID) + base::FEATURE_ENABLED_BY_DEFAULT + #else + base::FEATURE_DISABLED_BY_DEFAULT