diff --git a/build/bromite_patches_list.txt b/build/bromite_patches_list.txt index dfe74cf1..24a70da1 100644 --- a/build/bromite_patches_list.txt +++ b/build/bromite_patches_list.txt @@ -269,4 +269,6 @@ AudioBuffer-AnalyserNode-fp-mitigations.patch 00Enable-Document-Open-Inheritance-Removal.patch 00Add-setting-to-invert-tap-and-long-tap.patch 00Remove-ChromiumNetworkAdapter.patch -00Internal-firewall.patch \ No newline at end of file +00Internal-firewall.patch +00Disable-devtools-remote-and-custom-protocols.patch +00Remove-detection-of-captive-portals.patch \ No newline at end of file diff --git a/build/patches/00Disable-devtools-remote-and-custom-protocols.patch b/build/patches/00Disable-devtools-remote-and-custom-protocols.patch new file mode 100644 index 00000000..3d4fbd1c --- /dev/null +++ b/build/patches/00Disable-devtools-remote-and-custom-protocols.patch @@ -0,0 +1,31 @@ +From: uazo +Date: Mon, 17 Apr 2023 12:38:44 +0000 +Subject: Disable devtools remote and custom protocols + +--- + chrome/browser/ui/webui/devtools_ui_data_source.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/chrome/browser/ui/webui/devtools_ui_data_source.cc b/chrome/browser/ui/webui/devtools_ui_data_source.cc +--- a/chrome/browser/ui/webui/devtools_ui_data_source.cc ++++ b/chrome/browser/ui/webui/devtools_ui_data_source.cc +@@ -169,7 +169,7 @@ void DevToolsDataSource::StartDataRequest( + // Serve request to devtools://remote from remote location. + std::string remote_path_prefix(chrome::kChromeUIDevToolsRemotePath); + remote_path_prefix += "/"; +- if (base::StartsWith(path, remote_path_prefix, ++ if ((false) && base::StartsWith(path, remote_path_prefix, + base::CompareCase::INSENSITIVE_ASCII)) { + if (MaybeHandleCustomRequest(path.substr(remote_path_prefix.length()), + &callback)) { +@@ -192,7 +192,7 @@ void DevToolsDataSource::StartDataRequest( + // Serve request to devtools://custom from custom URL. + std::string custom_path_prefix(chrome::kChromeUIDevToolsCustomPath); + custom_path_prefix += "/"; +- if (base::StartsWith(path, custom_path_prefix, ++ if ((false) && base::StartsWith(path, custom_path_prefix, + base::CompareCase::INSENSITIVE_ASCII)) { + GURL custom_devtools_frontend = GetCustomDevToolsFrontendURL(); + if (!custom_devtools_frontend.is_empty()) { +-- +2.25.1 diff --git a/build/patches/00Remove-detection-of-captive-portals.patch b/build/patches/00Remove-detection-of-captive-portals.patch new file mode 100644 index 00000000..8832b6cd --- /dev/null +++ b/build/patches/00Remove-detection-of-captive-portals.patch @@ -0,0 +1,22 @@ +From: uazo +Date: Mon, 17 Apr 2023 12:43:19 +0000 +Subject: Remove detection of captive portals + +--- + chrome/browser/net/profile_network_context_service.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chrome/browser/net/profile_network_context_service.cc b/chrome/browser/net/profile_network_context_service.cc +--- a/chrome/browser/net/profile_network_context_service.cc ++++ b/chrome/browser/net/profile_network_context_service.cc +@@ -392,7 +392,7 @@ void ProfileNetworkContextService::UpdateAdditionalCertificates() { + void ProfileNetworkContextService::RegisterProfilePrefs( + user_prefs::PrefRegistrySyncable* registry) { + registry->RegisterBooleanPref( +- embedder_support::kAlternateErrorPagesEnabled, true, ++ embedder_support::kAlternateErrorPagesEnabled, false, + user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); + registry->RegisterBooleanPref(prefs::kQuicAllowed, true); + registry->RegisterBooleanPref(prefs::kGloballyScopeHTTPAuthCacheEnabled, +-- +2.25.1