NEW 247978
notificationclose event not firing when notification cleared
https://bugs.webkit.org/show_bug.cgi?id=247978
Summary notificationclose event not firing when notification cleared
Andy
Reported 2022-11-16 07:45:17 PST
the event 'notificationclose' does not fire when user closes a web push notification from notification center To replicate: - add the code below to service worker - push a notification - use web inspector on the service worker, with breakpoints for debugger enabled - click the X for the notification self.addEventListener('notificationclose', function (event) { debugger; }) expected outcome: Safari Web Inspector pauses at the debugger line above Actual outcome: The event is never triggered
Attachments
Radar WebKit Bug Importer
Comment 1 2022-11-16 22:13:55 PST
youenn fablet
Comment 2 2022-11-18 08:18:45 PST
I am adding an API test at https://bugs.webkit.org/show_bug.cgi?id=248084. The test seems to be working so maybe the issue is at Safari level.
Note You need to log in before you can comment on or make changes to this bug.