W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2014

Re: [whatwg] Notifications and service workers

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 29 Sep 2014 02:23:12 -0700
Message-ID: <CA+c2ei8aeDkb6uw9PJBbAomkCJjaq==fMPTsPWRtQ2ZEuV53Vw@mail.gmail.com>
To: Andrew Wilson <atwilson@google.com>
Cc: WHATWG <whatwg@whatwg.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Jake Archibald <jaffathecake@gmail.com>, Peter Beverloo <beverloo@google.com>
On Sun, Sep 28, 2014 at 11:15 PM, Andrew Wilson <atwilson@google.com> wrote:
>> * Dropping the close event.
>>
>> I've been wondering myself whether it's valuable to support this. Like
>> Tab, I'm not aware of any messaging application actually using the close
>> event as an indication that the message has been read. There is the "dismiss
>> all" button on most platforms, which definitely does not imply having read
>> the message. It's actually an interesting privacy question as well, for
>> example, if a user dismisses a Facebook notification in their notification
>> center without actually starting the app, should the sender be informed
>> about them having at least looked at their phone?
>
> Gmail tracks information internally about all open notifications so it knows
> what chat window, email, etc to display when the user clicks on one. It
> cleans up those data structures as notifications are closed, so if we stop
> generating close events, then gmail will leak even more memory than it
> currently does :)

Could this be solved by using the 'data' attribute when creating a Notification?

/ Jonas
Received on Monday, 29 September 2014 09:24:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:23 UTC