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

Re: [whatwg] [notifications][editorial] tweaking the "Activating a notification" window.focus() note

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 17 Apr 2014 00:14:41 +0100
Message-ID: <CADnb78iMXJPFGS9OUq_=HsA1XOszA7hsKigvyhEkCcFkBB9_tg@mail.gmail.com>
To: "Edward O'Connor" <eoconnor@apple.com>
Cc: WHATWG <whatwg@lists.whatwg.org>
On Thu, Apr 17, 2014 at 12:10 AM, Edward O'Connor <eoconnor@apple.com> wrote:
> In ยง4.6 Activating a notification, there's a note that currently reads
>     "User agents are strongly encouraged to make window.focus() work
>     from within the event listener for the event named click as a means
>     of focusing the browsing context related to the notification."
> This note assumes that the UA doesn't automatically focus the browsing
> context when a notification is activated. (Safari on OS X is one example
> of a UA which does this.) The note should be adjusted so that readers
> understand that calling window.focus() may not be necessary on some
> combinations of UA and system notification service.

Cool, do you have a plan for shared workers? (E.g. down the road with
service workers you can imagine creating Notification objects from
there at which point things become a bit hazy.)

Received on Wednesday, 16 April 2014 23:15:10 UTC

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