[whatwg] Notifications: reviving Notification objects

Anne van Kesteren annevk at annevk.nl
Sat Jul 20 08:31:29 PDT 2013

On Tue, Jul 9, 2013 at 8:32 AM, Anne van Kesteren <annevk at annevk.nl> wrote:
> A requires being able to get the notifications associated with a
> certain site. That can also be useful in case multiple windows are
> open of the same site and can help workers and pages coordinate once
> we enable notifications in workers.
> The idea to address A is:
>   Notification.get({tag})
> which returns a Promise which is fulfilled with an array of
> Notification objects for which tag is tag or all Notification objects
> if no tag is defined. The objects are origin-scoped. The reason a
> promise is used is because getting notifications may be a
> cross-process operation.

I've added this. The idea for notifying other globals that you created
a notification is to let developers communicate that themselves via
this proposed API:


More information about the whatwg mailing list