Bug 247978
| Summary: | notificationclose event not firing when notification cleared | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Andy <andy> |
| Component: | Service Workers | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | andy, beidson, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 13 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=268797 | ||
Andy
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/102451723>
youenn fablet
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.