From dee65b627342a64b7088370e298d17f3f4a7d4ab Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Tue, 19 May 2026 23:56:16 -0400 Subject: [PATCH 01/27] Delete patches/third_party/fedora/disable-cflag-for-aarch64-builds.patch --- .../disable-cflag-for-aarch64-builds.patch | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 patches/third_party/fedora/disable-cflag-for-aarch64-builds.patch diff --git a/patches/third_party/fedora/disable-cflag-for-aarch64-builds.patch b/patches/third_party/fedora/disable-cflag-for-aarch64-builds.patch deleted file mode 100644 index b47551a4..00000000 --- a/patches/third_party/fedora/disable-cflag-for-aarch64-builds.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn -index f2b15447535c0..db4cab206a818 100644 ---- a/build/config/compiler/BUILD.gn -+++ b/build/config/compiler/BUILD.gn -@@ -625,13 +625,6 @@ config("compiler") { - ] - } - -- # The performance improvement does not seem worth the risk. See -- # https://crbug.com/484082200 for background and https://crrev.com/c/7593035 -- # for discussion. -- if (!is_wasm) { -- cflags += [ "-fno-lifetime-dse" ] -- } -- - # TODO(hans): Remove this once Clang generates better optimized debug info - # by default. https://crbug.com/765793 - cflags += [ -@@ -1905,18 +1898,6 @@ config("sanitize_c_array_bounds") { - cflags = [ - "-fsanitize=array-bounds", - "-fsanitize-trap=array-bounds", -- -- # Some code users feature detection to determine if UBSAN (or any -- # sanitizer) is enabled, they then do expensive debug like operations. We -- # want to suppress this behaviour since we want to keep performance costs -- # as low as possible while having these checks. -- "-fsanitize-ignore-for-ubsan-feature=array-bounds", -- -- # Because we've enabled array-bounds sanitizing we also want to suppress -- # the related warning about "unsafe-buffer-usage-in-static-sized-array", -- # since we know that the array bounds sanitizing will catch any out-of- -- # bounds accesses. -- "-Wno-unsafe-buffer-usage-in-static-sized-array", - ] - } - } -@@ -1929,12 +1910,6 @@ config("sanitize_return") { - cflags = [ - "-fsanitize=return", - "-fsanitize-trap=return", -- -- # Some code users feature detection to determine if UBSAN (or any -- # sanitizer) is enabled, they then do expensive debug like operations. We -- # want to suppress this behaviour since we want to keep performance costs -- # as low as possible while having these checks. -- "-fsanitize-ignore-for-ubsan-feature=return", - ] - } - } From da06a2b21ed047de92bd2cbf44e40a76f434d4af Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 20 May 2026 00:17:42 -0400 Subject: [PATCH 02/27] Update add-dark-mode-toolbar-toggle.patch --- patches/trivalent/add-dark-mode-toolbar-toggle.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/trivalent/add-dark-mode-toolbar-toggle.patch b/patches/trivalent/add-dark-mode-toolbar-toggle.patch index 502e8428..392c352e 100644 --- a/patches/trivalent/add-dark-mode-toolbar-toggle.patch +++ b/patches/trivalent/add-dark-mode-toolbar-toggle.patch @@ -71,10 +71,10 @@ index d637eecb9e..621b51f79c 100644 #if BUILDFLAG(ENABLE_PRINTING) case IDC_BASIC_PRINT: base::RecordAction(base::UserMetricsAction("Accel_Advanced_Print")); -@@ -1570,6 +1574,7 @@ void BrowserCommandController::InitCommandState() { +@@ -1687,6 +1691,7 @@ void BrowserCommandController::InitCommandState() { command_updater_.UpdateCommandEnabled( - IDC_SHOW_HISTORY_CLUSTERS_SIDE_PANEL, - (!guest_session && !profile()->IsSystemProfile())); + IDC_SHOW_TABS_FROM_OTHER_DEVICES_SIDE_PANEL, + TabsFromOtherDevicesSidePanelCoordinator::IsSupported(profile())); + command_updater_.UpdateCommandEnabled(IDC_WEBSITE_DARKMODE, true); command_updater_.UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true); command_updater_.UpdateCommandEnabled(IDC_SHOW_COMMENTS_SIDE_PANEL, true); From c07401195729564b2bd7d4179d660b0612db7236 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 20 May 2026 00:21:05 -0400 Subject: [PATCH 03/27] Update add-hide-profile-icon-feature.patch --- .../add-hide-profile-icon-feature.patch | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/patches/trivalent/add-hide-profile-icon-feature.patch b/patches/trivalent/add-hide-profile-icon-feature.patch index e22a5919..fba5a3fd 100644 --- a/patches/trivalent/add-hide-profile-icon-feature.patch +++ b/patches/trivalent/add-hide-profile-icon-feature.patch @@ -24,30 +24,30 @@ index 45501ce4b4..dffd87c1e2 100644 BASE_FEATURE(kAllowEyeDropperWGCScreenCapture, #if BUILDFLAG(IS_WIN) diff --git a/chrome/browser/ui/ui_features.h b/chrome/browser/ui/ui_features.h -index 43f876760f..d1a60b37ab 100644 +index ec4e5c2d2b..b276e1a066 100644 --- a/chrome/browser/ui/ui_features.h +++ b/chrome/browser/ui/ui_features.h -@@ -20,6 +20,8 @@ namespace features { +@@ -19,6 +19,8 @@ namespace features { // All features in alphabetical order. The features should be documented // alongside the definition of their values in the .cc file. - + +BASE_DECLARE_FEATURE(kHideProfileIcon); + BASE_DECLARE_FEATURE(kAllowEyeDropperWGCScreenCapture); - - BASE_DECLARE_FEATURE(kBrowserWidgetCacheThemeService); + + BASE_DECLARE_FEATURE(kCreateNewTabGroupAppMenuTopLevel); diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc -index d1519e7f3782a..548be223ca340 100644 +index f4a09082bd..f129849413 100644 --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc -@@ -481,7 +481,9 @@ void ToolbarView::Init() { - // DevTools profiles are OffTheRecord, so hide it there. - show_avatar_toolbar_button = browser_->profile()->IsIncognitoProfile() || - browser_->profile()->IsGuestSession() || -- browser_->profile()->IsRegularProfile(); -+ (browser_->profile()->IsRegularProfile() && -+ !base::FeatureList::IsEnabled( -+ features::kHideProfileIcon)); +@@ -591,7 +591,9 @@ void ToolbarView::Init() { + // DevTools profiles are OffTheRecord, so hide it there. + show_avatar_toolbar_button = browser_->profile()->IsIncognitoProfile() || + browser_->profile()->IsGuestSession() || +- browser_->profile()->IsRegularProfile(); ++ (browser_->profile()->IsRegularProfile() && ++ !base::FeatureList::IsEnabled( ++ features::kHideProfileIcon)); #endif - avatar_->SetVisible(show_avatar_toolbar_button); - + avatar_->SetVisible(show_avatar_toolbar_button); + } From b5ffb5bb53c443c974db8512a2746d57bccb07d6 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 20 May 2026 00:25:45 -0400 Subject: [PATCH 04/27] Update register-new-strings.patch --- .../trivalent/ui/register-new-strings.patch | 116 ++++++++++-------- 1 file changed, 64 insertions(+), 52 deletions(-) diff --git a/patches/trivalent/ui/register-new-strings.patch b/patches/trivalent/ui/register-new-strings.patch index dd298b2c..750c5cbb 100644 --- a/patches/trivalent/ui/register-new-strings.patch +++ b/patches/trivalent/ui/register-new-strings.patch @@ -1,60 +1,72 @@ +Copyright 2026 The Trivalent Authors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and limitations under the License. +--- diff --git a/chrome/app/settings_strings.grdp b/chrome/app/settings_strings.grdp -index 81776c22d5..88e6f8d392 100644 +index aae688f787..1ab79f7b31 100644 --- a/chrome/app/settings_strings.grdp +++ b/chrome/app/settings_strings.grdp -@@ -1322,6 +1322,52 @@ - Browsing and searching is faster than standard preloading - - -+ -+ -+ Website dark mode -+ -+ -+ Printing capabilities -+ +@@ -1335,6 +1335,52 @@ + Browsing and searching is faster than standard preloading + + ++ ++ ++ Website dark mode ++ ++ ++ Printing capabilities ++ + -+ -+ -+ Hardening -+ -+ -+ Incognito Launch -+ -+ -+ Open external links in Incognito tabs -+ -+ -+ Incognito Startup -+ -+ -+ Opens new sessions in Incognito tabs -+ -+ -+ Block 3D APIs -+ -+ -+ Block web-facing access to features like WebGL -+ -+ -+ WebRTC Handling Policy -+ -+ -+ Network Service Sandbox -+ -+ -+ Disabling may fix issues with data persistence but will reduce security slightly, requires a restart to apply -+ -+ -+ Block Extensions -+ -+ -+ Changes to this setting requires a restart to apply -+ ++ ++ ++ Hardening ++ ++ ++ Incognito Launch ++ ++ ++ Open external links in Incognito tabs ++ ++ ++ Incognito Startup ++ ++ ++ Opens new sessions in Incognito tabs ++ ++ ++ Block 3D APIs ++ ++ ++ Block web-facing access to features like WebGL ++ ++ ++ WebRTC Handling Policy ++ ++ ++ Network Service Sandbox ++ ++ ++ Disabling may fix issues with data persistence but will reduce security slightly, requires a restart to apply ++ ++ ++ Block Extensions ++ ++ ++ Changes to this setting requires a restart to apply ++ + - - - Privacy and security + + + Privacy and security diff --git a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc index 556a396168..a6547ce454 100644 --- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc From 0affd32c06d12b394e2b30070dc0b89882799010 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 20 May 2026 00:28:11 -0400 Subject: [PATCH 05/27] Update add-new-prefs.patch --- patches/trivalent/ui/add-new-prefs.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/trivalent/ui/add-new-prefs.patch b/patches/trivalent/ui/add-new-prefs.patch index 37d6c2d9..3a352695 100644 --- a/patches/trivalent/ui/add-new-prefs.patch +++ b/patches/trivalent/ui/add-new-prefs.patch @@ -71,7 +71,7 @@ index 2a44a0d606..f3790357da 100644 +