W3C home > Mailing lists > Public > public-web-notification@w3.org > June 2012

Re: Fail if icon fails? Re: Web Notifications

From: John Gregg <johnnyg@google.com>
Date: Wed, 20 Jun 2012 06:33:37 -0700
Message-ID: <CAEd9o4RLKJNAw3KcD5nD7ynAZfNOzCVUDM37zUmMQhXDnaPS2w@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Charles McCathieNevile <chaals@opera.com>, Web Notification WG <public-web-notification@w3.org>
On Wed, Jun 20, 2012 at 6:19 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Wed, Jun 20, 2012 at 3:03 PM, Charles McCathieNevile
> <chaals@opera.com> wrote:
> > It seems that if the fetch for the icon fails, the notification just
> > vanishes. This doesn't seem to match the best effort idea, nor the
> > value of having a notification even if the icon is broken.
>
> This was the processing model of the old specification. Unless you
> load the image from another server it is probably always going to
> work, so I do not think this is a big problem (and if it is you can
> prefetch it and based on that decide to omit it), but I am open to
> changing it too...
>

I don't think the notification just vanishes -- the author gets an error
event.  Perhaps one problem though is that you can't tell the error event
for a bad icon from an error for invalid permission.  If that was possible,
the author could make the decision to show an icon-free notification.

I also realize now that if the underlying notification platform returns any
sort of error when showing (4.6.3), we should fire an error event on the
notification object instead of the show event.
Received on Wednesday, 20 June 2012 13:34:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 December 2012 14:48:28 GMT