diff --git a/notifications.html b/notifications.html index 6ca2ba0..2447889 100644 --- a/notifications.html +++ b/notifications.html @@ -11,7 +11,7 @@
If notification is not in the list of notifications, terminate these steps.
+If notification is a persistent notification and notification was closed by the user, run these substeps:
+Let callback be an algorithm that when invoked with a global, fires a service worker notification event named notificationclose
given notification on global.
Then run Handle Functional Event with notification’s service worker registration and callback.
+Remove notification from the list of notifications.
@@ -667,6 +675,7 @@The showNotification(title, options)
method, when invoked, must run these steps:
onnotificationclick
notificationclick
+ onnotificationclose
+ notificationclose
Thanks to @@ -760,6 +772,7 @@