- From: Andrew Wilson <atwilson@google.com>
- Date: Mon, 29 Sep 2014 12:10:29 +0200
- To: Robert Bīndar <robertbindar@gmail.com>
- Cc: WHATWG <whatwg@whatwg.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Jake Archibald <jaffathecake@gmail.com>, Jonas Sicking <jonas@sicking.cc>, Peter Beverloo <beverloo@google.com>
That only works if 'data' is a structured-cloneable data structure. I mean, typically in a full-featured web app, you have a large, complex data structure and you typically want to keep references into that data structure - you can't typically just copy pieces out and expect to perform operations on them. On Mon, Sep 29, 2014 at 11:54 AM, Robert Bīndar <robertbindar@gmail.com> wrote: > Sounds exactly like an use case of the 'data' attribute. > > 2014-09-29 12:23 GMT+03:00 Jonas Sicking <jonas@sicking.cc>: > >> 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 10:11:00 UTC