Re: Fail if icon fails? Re: Web Notifications

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 UTC