Re: [whatwg] Notification's click event should be cancelable

On Sun, Aug 24, 2014 at 11:18 AM, Olli Pettay <olli@pettay.fi> wrote:
> Given the very odd Notification API, where the same user input may end up
> being
> represented by several click events in the browser...
> (I think we need to change that somehow, if possible)
> ...cancelling any of the events should cancel the default action.

We could also make it so that each notification has exactly one
Notification object. And only service workers get a Notification.get()
API and multiple objects per notification, with the tradeoff that
those objects are not event targets as the events go to the service
worker directly. That might simplify things a bit.


-- 
http://annevankesteren.nl/

Received on Monday, 25 August 2014 08:30:13 UTC