From 665cf03f741f3d0bcb0800db5bb31c0707e4987e Mon Sep 17 00:00:00 2001 From: Jeremy Spiegel Date: Wed, 30 Nov 2022 13:18:35 -0800 Subject: [PATCH] fix: handle Notification requireInteraction option (#36477) --- shell/browser/notifications/platform_notification_service.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/browser/notifications/platform_notification_service.cc b/shell/browser/notifications/platform_notification_service.cc index f91c13f2b8d4a..aa2eb839c59b3 100644 --- a/shell/browser/notifications/platform_notification_service.cc +++ b/shell/browser/notifications/platform_notification_service.cc @@ -35,6 +35,9 @@ void OnWebNotificationAllowed(base::WeakPtr notification, options.icon = icon; options.silent = audio_muted ? true : data.silent; options.has_reply = false; + if (data.require_interaction) + options.timeout_type = u"never"; + notification->Show(options); } else { notification->Destroy();