Index: content/browser/notifications/notification_message_filter.cc |
diff --git a/content/browser/notifications/notification_message_filter.cc b/content/browser/notifications/notification_message_filter.cc |
index f0a64a761e60099f2f21d385a08f31a4fa34a971..62395ec1ce5384dcf6eea03c397348deb4f774f3 100644 |
--- a/content/browser/notifications/notification_message_filter.cc |
+++ b/content/browser/notifications/notification_message_filter.cc |
@@ -53,6 +53,10 @@ bool ValidateNotificationResources(const NotificationResources& resources) { |
kPlatformNotificationMaxIconSizePx) { |
return false; |
} |
+ if (resources.small_icon.width() > kPlatformNotificationMaxSmallIconSizePx || |
+ resources.small_icon.height() > kPlatformNotificationMaxSmallIconSizePx) { |
+ return false; |
+ } |
for (const auto& action_icon : resources.action_icons) { |
if (action_icon.width() > kPlatformNotificationMaxActionIconSizePx || |
action_icon.height() > kPlatformNotificationMaxActionIconSizePx) { |