diff options
Diffstat (limited to 'www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch')
| -rw-r--r-- | www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch | 76 |
1 files changed, 35 insertions, 41 deletions
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch b/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch index 9784907..4ee53be 100644 --- a/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch +++ b/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch | |||
| @@ -1,59 +1,53 @@ | |||
| 1 | --- a/chrome/common/chrome_features.cc | 1 | --- chrome/common/chrome_features.cc.orig |
| 2 | +++ b/chrome/common/chrome_features.cc | 2 | +++ chrome/common/chrome_features.cc |
| 3 | @@ -332,12 +332,7 @@ const base::Feature kKeepForceInstalledP | 3 | @@ -323,12 +323,7 @@ const base::Feature kDesktopPWAsWebBundl |
| 4 | // Enable DNS over HTTPS (DoH). | 4 | // Enable DNS over HTTPS (DoH). |
| 5 | const base::Feature kDnsOverHttps { | 5 | const base::Feature kDnsOverHttps { |
| 6 | "DnsOverHttps", | 6 | "DnsOverHttps", |
| 7 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | 7 | -#if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_MAC) || \ |
| 8 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) | 8 | - defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) |
| 9 | - base::FEATURE_ENABLED_BY_DEFAULT | 9 | - base::FEATURE_ENABLED_BY_DEFAULT |
| 10 | -#else | 10 | -#else |
| 11 | base::FEATURE_DISABLED_BY_DEFAULT | 11 | base::FEATURE_DISABLED_BY_DEFAULT |
| 12 | -#endif | 12 | -#endif |
| 13 | }; | 13 | }; |
| 14 | 14 | ||
| 15 | // Set whether fallback to insecure DNS is allowed by default. This setting may | 15 | // Provides a mechanism to remove providers from the dropdown list in the |
| 16 | --- a/net/dns/public/doh_provider_entry.cc | 16 | --- net/dns/public/doh_provider_entry.cc.orig |
| 17 | +++ b/net/dns/public/doh_provider_entry.cc | 17 | +++ net/dns/public/doh_provider_entry.cc |
| 18 | @@ -149,30 +149,6 @@ const DohProviderEntry::List& DohProvide | 18 | @@ -117,24 +117,6 @@ const DohProviderEntry::List& DohProvide |
| 19 | /*privacy_policy=*/"https://dns.sb/privacy/", | ||
| 19 | /*display_globally=*/false, /*display_countries=*/{"EE", "DE"}, | 20 | /*display_globally=*/false, /*display_countries=*/{"EE", "DE"}, |
| 20 | LoggingLevel::kNormal), | 21 | LoggingLevel::kNormal), |
| 21 | new DohProviderEntry( | 22 | - new DohProviderEntry("Google", DohProviderIdForHistogram::kGoogle, |
| 22 | - "Google", | 23 | - {"8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", |
| 23 | - base::Feature{"DohProviderGoogle", base::FEATURE_ENABLED_BY_DEFAULT}, | 24 | - "2001:4860:4860::8844"}, |
| 24 | - DohProviderIdForHistogram::kGoogle, | 25 | - {"dns.google", "dns.google.com", |
| 25 | - {"8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", | 26 | - "8888.google"} /* dns_over_tls_hostnames */, |
| 26 | - "2001:4860:4860::8844"}, | 27 | - "https://dns.google/dns-query{?dns}", |
| 27 | - /*dns_over_tls_hostnames=*/ | 28 | - "Google (Public DNS)" /* ui_name */, |
| 28 | - {"dns.google", "dns.google.com", "8888.google"}, | 29 | - "https://developers.google.com/speed/public-dns/" |
| 29 | - "https://dns.google/dns-query{?dns}", | 30 | - "privacy" /* privacy_policy */, |
| 30 | - /*ui_name=*/"Google (Public DNS)", | 31 | - true /* display_globally */, |
| 31 | - "https://developers.google.com/speed/public-dns/" | 32 | - {} /* display_countries */, LoggingLevel::kExtra), |
| 32 | - /*privacy_policy=*/"privacy", | ||
| 33 | - /*display_globally=*/true, /*display_countries=*/{}, | ||
| 34 | - LoggingLevel::kExtra), | ||
| 35 | - new DohProviderEntry("GoogleDns64", | ||
| 36 | - base::Feature{"DohProviderGoogleDns64", | ||
| 37 | - base::FEATURE_ENABLED_BY_DEFAULT}, | ||
| 38 | - /*provider_id_for_histogram=*/absl::nullopt, | ||
| 39 | - {"2001:4860:4860::64", "2001:4860:4860::6464"}, | ||
| 40 | - /*dns_over_tls_hostnames=*/{"dns64.dns.google"}, | ||
| 41 | - "https://dns64.dns.google/dns-query{?dns}", | ||
| 42 | - /*ui_name=*/"", /*privacy_policy=*/"", | ||
| 43 | - /*display_globally=*/false, | ||
| 44 | - /*display_countries=*/{}, LoggingLevel::kNormal), | ||
| 45 | - new DohProviderEntry( | 33 | - new DohProviderEntry( |
| 46 | "Iij", | 34 | - "GoogleDns64", absl::nullopt /* provider_id_for_histogram */, |
| 47 | base::Feature{"DohProviderIij", base::FEATURE_ENABLED_BY_DEFAULT}, | 35 | - {"2001:4860:4860::64", "2001:4860:4860::6464"}, |
| 48 | DohProviderIdForHistogram::kIij, /*ip_strs=*/{}, | 36 | - {"dns64.dns.google"} /* dns_over_tls_hostnames */, |
| 49 | --- a/services/network/public/cpp/features.cc | 37 | - "https://dns64.dns.google/dns-query{?dns}", "" /* ui_name */, |
| 50 | +++ b/services/network/public/cpp/features.cc | 38 | - "" /* privacy_policy */, false /* display_globally */, |
| 51 | @@ -92,12 +92,7 @@ const base::Feature kSplitAuthCacheByNet | 39 | - {} /* display_countries */, LoggingLevel::kNormal), |
| 40 | new DohProviderEntry("Iij", DohProviderIdForHistogram::kIij, | ||
| 41 | {} /* ip_strs */, {} /* dns_over_tls_hostnames */, | ||
| 42 | "https://public.dns.iij.jp/dns-query", | ||
| 43 | --- services/network/public/cpp/features.cc.orig | ||
| 44 | +++ services/network/public/cpp/features.cc | ||
| 45 | @@ -114,12 +114,7 @@ const base::Feature kSplitAuthCacheByNet | ||
| 52 | // Enable usage of hardcoded DoH upgrade mapping for use in automatic mode. | 46 | // Enable usage of hardcoded DoH upgrade mapping for use in automatic mode. |
| 53 | const base::Feature kDnsOverHttpsUpgrade { | 47 | const base::Feature kDnsOverHttpsUpgrade { |
| 54 | "DnsOverHttpsUpgrade", | 48 | "DnsOverHttpsUpgrade", |
| 55 | -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ | 49 | -#if BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_MAC) || defined(OS_ANDROID) || \ |
| 56 | - BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) | 50 | - defined(OS_WIN) |
| 57 | - base::FEATURE_ENABLED_BY_DEFAULT | 51 | - base::FEATURE_ENABLED_BY_DEFAULT |
| 58 | -#else | 52 | -#else |
| 59 | base::FEATURE_DISABLED_BY_DEFAULT | 53 | base::FEATURE_DISABLED_BY_DEFAULT |
