From 6b5ec6c5f80526b8a171212cbd75d7c0bd873174 Mon Sep 17 00:00:00 2001 From: RoyalOughtness <129108030+RoyalOughtness@users.noreply.github.com> Date: Tue, 4 Feb 2025 13:08:09 -0800 Subject: [PATCH 1/5] chore: update patches for 133 --- ...hromium-125-disable-FFmpegAllowLists.patch | 12 --- ...e-H.264-video-parser-during-demuxing.patch | 32 ------- patches/default-disable-3d-apis.patch | 6 +- patches/disable-lens.patch | 41 ++------- patches/disable-promotions-by-default.patch | 6 +- patches/remove-unused-preferences.patch | 88 +++++-------------- patches/set-browser-defaults.patch | 7 +- ...08-switch-to-fstack-protector-strong.patch | 4 +- ...fwrapv-in-Clang-for-non-UBSan-builds.patch | 4 +- ...0-enable-ftrivial-auto-var-init-zero.patch | 4 +- .../0012-Checkout-PGO-profiles.patch | 4 +- .../0013-disable-checkout_nacl.patch | 2 +- ...0015-disable-seed-based-field-trials.patch | 6 +- ...vigation-error-correction-by-default.patch | 4 +- ...isable-hyperlink-auditing-by-default.patch | 4 +- ...-content-feed-suggestions-by-default.patch | 8 +- ...27-disable-sensors-access-by-default.patch | 4 +- ...k-playing-protected-media-by-default.patch | 2 +- ...sable-third-party-cookies-by-default.patch | 2 +- ...0-disable-background-sync-by-default.patch | 2 +- ...dia-router-media-remoting-by-default.patch | 4 +- ...0033-disable-media-router-by-default.patch | 6 +- ...e-browser-sign-in-feature-by-default.patch | 6 +- ...media-DRM-preprovisioning-by-default.patch | 4 +- ...fill-server-communication-by-default.patch | 4 +- ...042-disable-trivial-subdomain-hiding.patch | 6 +- ...AuthFetcher-code-due-to-upstream-bug.patch | 24 ++--- ...-privacy-sandbox-features-by-default.patch | 8 +- .../0050-always-use-local-new-tab-page.patch | 6 +- ...mark-non-secure-origins-as-dangerous.patch | 4 +- ...f-privacy-aware-analytics-advertisin.patch | 2 +- ...-disable-appending-variations-header.patch | 4 +- ...ching-optimization-guides-by-default.patch | 2 +- ...-require-HTTPS-for-component-updates.patch | 2 +- ...-prefetch-privacy-changes-by-default.patch | 4 +- .../0070-enable-split-cache-by-default.patch | 2 +- ...-partitioning-connections-by-default.patch | 2 +- ...e-strict-origin-isolation-by-default.patch | 4 +- ...ce-accept-language-header-by-default.patch | 8 +- ...gle-Chrome-branding-for-client-hints.patch | 4 +- ...Always-partition-third-party-storage.patch | 20 ++--- ...opy-client-hints-with-reduced-user-a.patch | 16 ++-- ...ent-settings-partitioning-by-default.patch | 4 +- ...andboxed-iframes-per-site-by-default.patch | 4 +- ...ynamic-code-execution-via-seccomp-bp.patch | 12 +-- 45 files changed, 140 insertions(+), 264 deletions(-) delete mode 100644 fedora_patches/chromium-125-disable-FFmpegAllowLists.patch delete mode 100644 fedora_patches/chromium-129-disable-H.264-video-parser-during-demuxing.patch diff --git a/fedora_patches/chromium-125-disable-FFmpegAllowLists.patch b/fedora_patches/chromium-125-disable-FFmpegAllowLists.patch deleted file mode 100644 index e03688cd..00000000 --- a/fedora_patches/chromium-125-disable-FFmpegAllowLists.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-125.0.6422.41/media/base/media_switches.cc.disable-FFmpegAllowLists chromium-125.0.6422.41/media/base/media_switches.cc ---- chromium-125.0.6422.41/media/base/media_switches.cc.disable-FFmpegAllowLists 2024-05-12 21:28:43.694027396 +0200 -+++ chromium-125.0.6422.41/media/base/media_switches.cc 2024-05-12 21:32:48.155063623 +0200 -@@ -1753,7 +1753,7 @@ BASE_FEATURE(kUseWindowBoundsForPip, - // Enables FFmpeg allow lists for supported codecs / containers. - BASE_FEATURE(kFFmpegAllowLists, - "FFmpegAllowLists", -- base::FEATURE_ENABLED_BY_DEFAULT); -+ base::FEATURE_DISABLED_BY_DEFAULT); - - #if BUILDFLAG(IS_WIN) - // Enables audio offload when supported by endpoints. diff --git a/fedora_patches/chromium-129-disable-H.264-video-parser-during-demuxing.patch b/fedora_patches/chromium-129-disable-H.264-video-parser-during-demuxing.patch deleted file mode 100644 index 78f49fa4..00000000 --- a/fedora_patches/chromium-129-disable-H.264-video-parser-during-demuxing.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -up chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc.me chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc ---- chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc.me 2024-09-15 22:12:33.945186323 +0200 -+++ chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc 2024-09-16 10:53:13.334970539 +0200 -@@ -17,14 +17,11 @@ - - namespace media { - --// Kill switches in case things explode. Remove after M132. -+// Kill switch in case things explode. Remove after M132. - // TODO(crbug.com/355485812): Re-enable this flag. - BASE_FEATURE(kAllowOnlyAudioCodecsDuringDemuxing, - "AllowOnlyAudioCodecsDuringDemuxing", - base::FEATURE_ENABLED_BY_DEFAULT); --BASE_FEATURE(kForbidH264ParsingDuringDemuxing, -- "ForbidH264ParsingDuringDemuxing", -- base::FEATURE_ENABLED_BY_DEFAULT); - - // Internal buffer size used by AVIO for reading. - // TODO(dalecurtis): Experiment with this buffer size and measure impact on -@@ -118,12 +115,6 @@ FFmpegGlue::FFmpegGlue(FFmpegURLProtocol - // Enable fast, but inaccurate seeks for MP3. - format_context_->flags |= AVFMT_FLAG_FAST_SEEK; - -- // We don't allow H.264 parsing during demuxing since we have our own parser -- // and the ffmpeg one increases memory usage unnecessarily. -- if (base::FeatureList::IsEnabled(kForbidH264ParsingDuringDemuxing)) { -- format_context_->flags |= AVFMT_FLAG_NOH264PARSE; -- } -- - // Ensures format parsing errors will bail out. From an audit on 11/2017, all - // instances were real failures. Solves bugs like http://crbug.com/710791. - format_context_->error_recognition |= AV_EF_EXPLODE; diff --git a/patches/default-disable-3d-apis.patch b/patches/default-disable-3d-apis.patch index c7497f9b..e7491c17 100644 --- a/patches/default-disable-3d-apis.patch +++ b/patches/default-disable-3d-apis.patch @@ -1,13 +1,13 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc -index 25b5c325f612d..b5d404abbca92 100644 +index a1a8e77a2ef3f..63a4ef556e036 100644 --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -1579,7 +1579,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePrefs( +@@ -1556,7 +1556,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePrefs( // static void ChromeContentBrowserClient::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { - registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false); + registry->RegisterBooleanPref(prefs::kDisable3DAPIs, true); - registry->RegisterBooleanPref(prefs::kEnableHyperlinkAuditing, false); + registry->RegisterBooleanPref(prefs::kEnableHyperlinkAuditing, true); // Register user prefs for mapping SitePerProcess and IsolateOrigins in // user policy in addition to the same named ones in Local State (which are diff --git a/patches/disable-lens.patch b/patches/disable-lens.patch index dfd828ce..02181da5 100644 --- a/patches/disable-lens.patch +++ b/patches/disable-lens.patch @@ -1,39 +1,12 @@ diff --git a/components/lens/lens_features.cc b/components/lens/lens_features.cc -index d029f6f7242b4..bf1a8c24e5d2d 100644 +index 12b0f931fa71d..cc5952d04b9ae 100644 --- a/components/lens/lens_features.cc +++ b/components/lens/lens_features.cc -@@ -13,7 +13,7 @@ namespace lens::features { +@@ -16,16 +16,11 @@ namespace lens::features { BASE_FEATURE(kLensStandalone, "LensStandalone", - base::FEATURE_ENABLED_BY_DEFAULT); -+ base::FEATURE_DISABLED_BY_DEFAULT); - - BASE_FEATURE(kLensSearchOptimizations, - "LensSearchOptimizations", -@@ -21,7 +21,7 @@ BASE_FEATURE(kLensSearchOptimizations, - - BASE_FEATURE(kEnableLatencyLogging, - "LensImageLatencyLogging", -- base::FEATURE_ENABLED_BY_DEFAULT); -+ base::FEATURE_DISABLED_BY_DEFAULT); - - BASE_FEATURE(kEnableRegionSearchKeyboardShortcut, - "LensEnableRegionSearchKeyboardShortcut", -@@ -33,7 +33,7 @@ BASE_FEATURE(kEnableImageTranslate, - - BASE_FEATURE(kEnableImageSearchSidePanelFor3PDse, - "EnableImageSearchSidePanelFor3PDse", -- base::FEATURE_ENABLED_BY_DEFAULT); -+ base::FEATURE_DISABLED_BY_DEFAULT); - - BASE_FEATURE(kLensRegionSearchStaticPage, - "LensRegionSearchStaticPage", -@@ -41,16 +41,11 @@ BASE_FEATURE(kLensRegionSearchStaticPage, - - BASE_FEATURE(kEnableContextMenuInLensSidePanel, - "EnableContextMenuInLensSidePanel", -- base::FEATURE_ENABLED_BY_DEFAULT); + base::FEATURE_DISABLED_BY_DEFAULT); BASE_FEATURE(kLensOverlay, @@ -49,10 +22,10 @@ index d029f6f7242b4..bf1a8c24e5d2d 100644 BASE_FEATURE(kLensOverlayTranslateButton, "LensOverlayTranslateButton", diff --git a/components/lens/lens_overlay_permission_utils.cc b/components/lens/lens_overlay_permission_utils.cc -index 5c54e349a6d27..72f40a9593388 100644 +index 5c54e349a6d27..1c3a00f4c0f67 100644 --- a/components/lens/lens_overlay_permission_utils.cc +++ b/components/lens/lens_overlay_permission_utils.cc -@@ -19,7 +19,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { +@@ -19,11 +19,11 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { // policies are registered just in case. registry->RegisterIntegerPref( kLensOverlaySettings, @@ -61,4 +34,8 @@ index 5c54e349a6d27..72f40a9593388 100644 registry->RegisterIntegerPref( kGenAiLensOverlaySettings, - +- static_cast(GenAiLensOverlaySettingsPolicyValue::kAllowed)); ++ static_cast(GenAiLensOverlaySettingsPolicyValue::kDisabled)); + + registry->RegisterBooleanPref(kLensSharingPageScreenshotEnabled, false); + registry->RegisterBooleanPref(kLensSharingPageContentEnabled, false); diff --git a/patches/disable-promotions-by-default.patch b/patches/disable-promotions-by-default.patch index e8999c97..67c4acda 100644 --- a/patches/disable-promotions-by-default.patch +++ b/patches/disable-promotions-by-default.patch @@ -1,13 +1,13 @@ diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc -index 8740af9bc6cd6..e7eaae8ea2edb 100644 +index d26f0998c81fc..857eda407e3ab 100644 --- a/chrome/browser/ui/startup/startup_browser_creator.cc +++ b/chrome/browser/ui/startup/startup_browser_creator.cc -@@ -912,7 +912,7 @@ void StartupBrowserCreator::ClearLaunchedProfilesForTesting() { +@@ -929,7 +929,7 @@ void StartupBrowserCreator::ClearLaunchedProfilesForTesting() { // static void StartupBrowserCreator::RegisterLocalStatePrefs( PrefRegistrySimple* registry) { - registry->RegisterBooleanPref(prefs::kPromotionsEnabled, true); + registry->RegisterBooleanPref(prefs::kPromotionsEnabled, false); - #if !BUILDFLAG(IS_CHROMEOS_ASH) + #if !BUILDFLAG(IS_CHROMEOS) registry->RegisterBooleanPref(prefs::kCommandLineFlagSecurityWarningsEnabled, true); diff --git a/patches/remove-unused-preferences.patch b/patches/remove-unused-preferences.patch index be88bcfd..6134c03f 100644 --- a/patches/remove-unused-preferences.patch +++ b/patches/remove-unused-preferences.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/basic_page/basic_page.html b/chrome/browser/resources/settings/basic_page/basic_page.html -index e33e49405479b..ee86bb13d87d4 100644 +index d79fef3c81ede..b6faaad86b752 100644 --- a/chrome/browser/resources/settings/basic_page/basic_page.html +++ b/chrome/browser/resources/settings/basic_page/basic_page.html @@ -27,7 +27,7 @@ @@ -11,51 +11,8 @@ index e33e49405479b..ee86bb13d87d4 100644 section="people"> -@@ -215,13 +215,6 @@ - - - -- -- -- -- - -