diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_metrics_histogram__macros.h b/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_metrics_histogram__macros.h new file mode 100644 index 000000000000..abd70a4199fe --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_metrics_histogram__macros.h @@ -0,0 +1,19 @@ +--- src/3rdparty/chromium/base/metrics/histogram_macros.h.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/base/metrics/histogram_macros.h +@@ -54,13 +54,14 @@ + // + // The second variant requires three arguments: the first two are the same as + // before, and the third argument is the enum boundary: this must be strictly +-// greater than any other enumerator that will be sampled. ++// greater than any other enumerator that will be sampled. This only works for ++// enums with a fixed underlying type. + // + // Sample usage: + // // These values are logged to UMA. Entries should not be renumbered and + // // numeric values should never be reused. Please keep in sync with "MyEnum" + // // in src/tools/metrics/histograms/enums.xml. +-// enum class MyEnum { ++// enum class MyEnum : uint8_t { + // FIRST_VALUE = 0, + // SECOND_VALUE = 1, + // ... diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_metrics_histogram__macros__internal.h b/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_metrics_histogram__macros__internal.h new file mode 100644 index 000000000000..27e8ff927175 --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_metrics_histogram__macros__internal.h @@ -0,0 +1,13 @@ +--- src/3rdparty/chromium/base/metrics/histogram_macros_internal.h.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/base/metrics/histogram_macros_internal.h +@@ -42,6 +42,10 @@ struct EnumSizeTraits< + Enum, + std::enable_if_t::value>> { + static constexpr Enum Count() { ++ // If you're getting ++ // note: integer value X is outside the valid range of values [0, X] for ++ // this enumeration type ++ // Then you need to give your enum a fixed underlying type. + return static_cast( + static_cast>(Enum::kMaxValue) + 1); + } diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_download_public_common_download__stats.h b/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_download_public_common_download__stats.h new file mode 100644 index 000000000000..0fcaaf92b404 --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_download_public_common_download__stats.h @@ -0,0 +1,11 @@ +--- src/3rdparty/chromium/components/download/public/common/download_stats.h.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/components/download/public/common/download_stats.h +@@ -145,7 +145,7 @@ enum DownloadCountTypes { + + // Enum for in-progress download DB, used in histogram + // "Download.InProgressDB.Counts". +-enum InProgressDBCountTypes { ++enum InProgressDBCountTypes : uint8_t { + // Count of initialization attempts. + kInitializationCount = 0, + diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_sessions_core_session__service__commands.cc b/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_sessions_core_session__service__commands.cc new file mode 100644 index 000000000000..8dd7c1873e1a --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_components_sessions_core_session__service__commands.cc @@ -0,0 +1,13 @@ +--- src/3rdparty/chromium/components/sessions/core/session_service_commands.cc.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/components/sessions/core/session_service_commands.cc +@@ -164,8 +164,8 @@ static_assert(ui::SHOW_STATE_END == + // Assert to ensure PersistedWindowShowState is updated if ui::WindowShowState + // is changed. + static_assert(ui::SHOW_STATE_END == +- (static_cast(PERSISTED_SHOW_STATE_END) - +- 2), ++ static_cast(PERSISTED_SHOW_STATE_END - ++ 2), + "SHOW_STATE_END must equal PERSISTED_SHOW_STATE_END minus the " + "deprecated entries"); + // Returns the show state to store to disk based |state|. diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_content_browser_code__cache_generated__code__cache.h b/www/qt5-webengine/files/patch-src_3rdparty_chromium_content_browser_code__cache_generated__code__cache.h new file mode 100644 index 000000000000..97aa06394a5c --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_content_browser_code__cache_generated__code__cache.h @@ -0,0 +1,12 @@ +--- src/3rdparty/chromium/content/browser/code_cache/generated_code_cache.h.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/content/browser/code_cache/generated_code_cache.h +@@ -53,7 +53,8 @@ class CONTENT_EXPORT GeneratedCodeCache { + enum CodeCacheType { kJavaScript, kWebAssembly }; + + // Used for collecting statistics about cache behaviour. +- enum CacheEntryStatus { ++ // Since it's uploaded to UMA, its values must never change. ++ enum CacheEntryStatus : uint8_t { + kHit, + kMiss, + kClear, diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_net_cookies_cookie__monster.h b/www/qt5-webengine/files/patch-src_3rdparty_chromium_net_cookies_cookie__monster.h new file mode 100644 index 000000000000..45fac39ca5cd --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_net_cookies_cookie__monster.h @@ -0,0 +1,11 @@ +--- src/3rdparty/chromium/net/cookies/cookie_monster.h.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/net/cookies/cookie_monster.h +@@ -314,7 +314,7 @@ class NET_EXPORT CookieMonster : public CookieStore { + // of scheme. This enum should not be used when cookies are *cleared*, + // because its purpose is to understand if Chrome can deprecate the + // ability of HTTP urls to set/overwrite Secure cookies. +- enum CookieSource { ++ enum CookieSource : uint8_t { + COOKIE_SOURCE_SECURE_COOKIE_CRYPTOGRAPHIC_SCHEME = 0, + COOKIE_SOURCE_SECURE_COOKIE_NONCRYPTOGRAPHIC_SCHEME, + COOKIE_SOURCE_NONSECURE_COOKIE_CRYPTOGRAPHIC_SCHEME, diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_core_imagebitmap_image__bitmap__factories.cc b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_core_imagebitmap_image__bitmap__factories.cc new file mode 100644 index 000000000000..01b845987b66 --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_core_imagebitmap_image__bitmap__factories.cc @@ -0,0 +1,11 @@ +--- src/3rdparty/chromium/third_party/blink/renderer/core/imagebitmap/image_bitmap_factories.cc.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/third_party/blink/renderer/core/imagebitmap/image_bitmap_factories.cc +@@ -63,7 +63,7 @@ namespace { + + namespace { + // This enum is used in a UMA histogram. +-enum CreateImageBitmapSource { ++enum CreateImageBitmapSource : uint8_t { + kCreateImageBitmapSourceBlob = 0, + kCreateImageBitmapSourceImageBitmap = 1, + kCreateImageBitmapSourceImageData = 2, diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_image-encoders_image__encoder__utils.cc b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_image-encoders_image__encoder__utils.cc new file mode 100644 index 000000000000..07a236aced04 --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_blink_renderer_platform_image-encoders_image__encoder__utils.cc @@ -0,0 +1,11 @@ +--- src/3rdparty/chromium/third_party/blink/renderer/platform/image-encoders/image_encoder_utils.cc.orig 2025-04-23 16:00:55 UTC ++++ src/3rdparty/chromium/third_party/blink/renderer/platform/image-encoders/image_encoder_utils.cc +@@ -16,7 +16,7 @@ namespace { + + namespace { + // This enum is used in a UMA histogram; the values should not be changed. +-enum RequestedImageMimeType { ++enum RequestedImageMimeType : uint8_t { + kRequestedImageMimeTypePng = 0, + kRequestedImageMimeTypeJpeg = 1, + kRequestedImageMimeTypeWebp = 2,