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

Re: [whatwg] Notifications and service workers

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 6 Oct 2014 12:11:34 -0700
Message-ID: <CA+c2ei93UBqoe-BDJULM8hccei0ZoMW+Gzq8tACnicWbLMmnLA@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHATWG <whatwg@whatwg.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Jake Archibald <jaffathecake@gmail.com>, Andrew Wilson <atwilson@google.com>, Peter Beverloo <beverloo@google.com>
On Mon, Oct 6, 2014 at 9:29 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
>>> Yeah, it seems like we need to keep this. Through opt-in works.
>> It seems like if we keep this event it should at the very least be
>> possible to tell "closed because of user action" from "closed because
>> of timeout or other platform policy". And maybe also "closed because
>> of application calling .close()". Otherwise it doesn't seem like it
>> meets Andrew's use case or the use case above.
> I added the service worker API now, but have not addressed this
> particular point yet. Does anyone have a good idea of what should be
> done here?

If we keep the close event, then I think adding a .reason property to
the event object, which can be set to "user", "platform" or "api"
should work.

Though based on Andrew's latest comments, I don't know that anyone
strongly feels that we need to keep the event?

/ Jonas
Received on Monday, 6 October 2014 19:12:29 UTC

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