diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch index 0bc5dd5..ce33ec4 100644 --- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Disables IPv6 probing and adds an option to change the IPv6 probing result | 1 | # Disables IPv6 probing and adds an option to change the IPv6 probing result |
| 2 | 2 | ||
| 3 | --- chrome/browser/ungoogled_flag_entries.h.orig | 3 | --- a/chrome/browser/ungoogled_flag_entries.h |
| 4 | +++ chrome/browser/ungoogled_flag_entries.h | 4 | +++ b/chrome/browser/ungoogled_flag_entries.h |
| 5 | @@ -4,4 +4,8 @@ | 5 | @@ -4,4 +4,8 @@ |
| 6 | 6 | ||
| 7 | #ifndef CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ | 7 | #ifndef CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ |
| @@ -11,30 +11,30 @@ | |||
| 11 | + "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.", | 11 | + "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.", |
| 12 | + kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)}, | 12 | + kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)}, |
| 13 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ | 13 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ |
| 14 | --- net/base/features.cc.orig | 14 | --- a/net/base/features.cc |
| 15 | +++ net/base/features.cc | 15 | +++ b/net/base/features.cc |
| 16 | @@ -263,5 +263,7 @@ const base::Feature kPartitionedCookies{ | 16 | @@ -259,5 +259,7 @@ const base::Feature kRecordRadioWakeupTr |
| 17 | const base::Feature kExtraCookieValidityChecks{ | 17 | const base::Feature kSandboxHttpCache("SandboxHttpCache", |
| 18 | "ExtraCookieValidityChecks", base::FEATURE_ENABLED_BY_DEFAULT}; | 18 | base::FEATURE_DISABLED_BY_DEFAULT); |
| 19 | 19 | ||
| 20 | +const base::Feature kSetIpv6ProbeFalse{"SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT}; | 20 | +const base::Feature kSetIpv6ProbeFalse{"SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 21 | + | 21 | + |
| 22 | } // namespace features | 22 | } // namespace features |
| 23 | } // namespace net | 23 | } // namespace net |
| 24 | --- net/base/features.h.orig | 24 | --- a/net/base/features.h |
| 25 | +++ net/base/features.h | 25 | +++ b/net/base/features.h |
| 26 | @@ -396,6 +396,8 @@ NET_EXPORT extern const base::Feature kP | 26 | @@ -390,6 +390,8 @@ NET_EXPORT extern const base::Feature kR |
| 27 | // feature flag, assuming no breakage occurs with it enabled. | 27 | // the network process to be sandboxed. |
| 28 | NET_EXPORT extern const base::Feature kExtraCookieValidityChecks; | 28 | NET_EXPORT extern const base::Feature kSandboxHttpCache; |
| 29 | 29 | ||
| 30 | +NET_EXPORT extern const base::Feature kSetIpv6ProbeFalse; | 30 | +NET_EXPORT extern const base::Feature kSetIpv6ProbeFalse; |
| 31 | + | 31 | + |
| 32 | } // namespace features | 32 | } // namespace features |
| 33 | } // namespace net | 33 | } // namespace net |
| 34 | 34 | ||
| 35 | --- net/dns/host_resolver_manager.cc.orig | 35 | --- a/net/dns/host_resolver_manager.cc |
| 36 | +++ net/dns/host_resolver_manager.cc | 36 | +++ b/net/dns/host_resolver_manager.cc |
| 37 | @@ -139,11 +139,6 @@ const unsigned kMinimumTTLSeconds = kCac | 37 | @@ -151,11 +151,6 @@ const unsigned kMinimumTTLSeconds = kCac |
| 38 | // cached. | 38 | // cached. |
| 39 | const int kIPv6ProbePeriodMs = 1000; | 39 | const int kIPv6ProbePeriodMs = 1000; |
| 40 | 40 | ||
| @@ -46,7 +46,7 @@ | |||
| 46 | enum DnsResolveStatus { | 46 | enum DnsResolveStatus { |
| 47 | RESOLVE_STATUS_DNS_SUCCESS = 0, | 47 | RESOLVE_STATUS_DNS_SUCCESS = 0, |
| 48 | RESOLVE_STATUS_PROC_SUCCESS, | 48 | RESOLVE_STATUS_PROC_SUCCESS, |
| 49 | @@ -3696,7 +3691,7 @@ bool HostResolverManager::IsIPv6Reachabl | 49 | @@ -3907,7 +3902,7 @@ bool HostResolverManager::IsIPv6Reachabl |
| 50 | (tick_clock_->NowTicks() - last_ipv6_probe_time_).InMilliseconds() > | 50 | (tick_clock_->NowTicks() - last_ipv6_probe_time_).InMilliseconds() > |
| 51 | kIPv6ProbePeriodMs) { | 51 | kIPv6ProbePeriodMs) { |
| 52 | SetLastIPv6ProbeResult( | 52 | SetLastIPv6ProbeResult( |
