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 e37d21b6fe1b61a6bc02acdb37b422dd95ca1181..1565c14e168ef0a39b3fe503438ff67ec2422058 100644 |
--- a/content/browser/notifications/notification_message_filter.cc |
+++ b/content/browser/notifications/notification_message_filter.cc |
@@ -48,6 +48,10 @@ PlatformNotificationData SanitizeNotificationData( |
// Returns true when |resources| looks ok, false otherwise. |
bool ValidateNotificationResources(const NotificationResources& resources) { |
Peter Beverloo
2016/08/22 20:11:07
We should probably check that the command line fla
johnme
2016/08/23 14:59:49
Done.
|
+ if (resources.image.width() > blink::kWebNotificationMaxImageWidthPx || |
+ resources.image.height() > blink::kWebNotificationMaxImageHeightPx) { |
+ return false; |
+ } |
if (resources.notification_icon.width() > |
blink::kWebNotificationMaxIconSizePx || |
resources.notification_icon.height() > |