diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch index be26b2c..840f91a 100644 --- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | # Add flag to force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs) to mitigate homograph attacks | 1 | # Add flag to force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs) to mitigate homograph attacks |
| 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 | @@ -24,4 +24,8 @@ | 5 | @@ -20,4 +20,8 @@ |
| 6 | "Disable beforeunload", | 6 | "Disable beforeunload", |
| 7 | "Disables JavaScript dialog boxes triggered by beforeunload. ungoogled-chromium flag.", | 7 | "Disables JavaScript dialog boxes triggered by beforeunload. ungoogled-chromium flag.", |
| 8 | kOsAll, SINGLE_VALUE_TYPE("disable-beforeunload")}, | 8 | kOsAll, SINGLE_VALUE_TYPE("disable-beforeunload")}, |
| @@ -11,17 +11,17 @@ | |||
| 11 | + "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", | 11 | + "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", |
| 12 | + kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, | 12 | + kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, |
| 13 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ | 13 | #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ |
| 14 | --- components/url_formatter/url_formatter.cc.orig | 14 | --- a/components/url_formatter/url_formatter.cc |
| 15 | +++ components/url_formatter/url_formatter.cc | 15 | +++ b/components/url_formatter/url_formatter.cc |
| 16 | @@ -8,6 +8,7 @@ | 16 | @@ -9,6 +9,7 @@ |
| 17 | #include <utility> | 17 | #include <utility> |
| 18 | #include <vector> | 18 | #include <vector> |
| 19 | 19 | ||
| 20 | +#include "base/command_line.h" | 20 | +#include "base/command_line.h" |
| 21 | #include "base/lazy_instance.h" | 21 | #include "base/lazy_instance.h" |
| 22 | #include "base/memory/raw_ptr.h" | ||
| 22 | #include "base/numerics/safe_conversions.h" | 23 | #include "base/numerics/safe_conversions.h" |
| 23 | #include "base/strings/strcat.h" | 24 | @@ -270,6 +271,13 @@ IDNConversionResult IDNToUnicodeWithAdju |
| 24 | @@ -264,6 +265,13 @@ IDNConversionResult IDNToUnicodeWithAdju | ||
| 25 | host16.reserve(host.length()); | 25 | host16.reserve(host.length()); |
| 26 | host16.insert(host16.end(), host.begin(), host.end()); | 26 | host16.insert(host16.end(), host.begin(), host.end()); |
| 27 | 27 | ||
