Re: Fail if icon fails? Re: Web Notifications

On Wed, 20 Jun 2012 15:39:48 +0200, Anne van Kesteren <annevk@annevk.nl>  
wrote:

> On Wed, Jun 20, 2012 at 3:33 PM, John Gregg <johnnyg@google.com> wrote:
>> 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.

Right - which effectively means it just vanishes...

>> If that was possible, the author could make the decision to show an
>> icon-free notification.
>
> We could introduce an event named "iconerror" if we think it's worth
> it. Dispatching events with other names is rather trivial.

That's one approach. Doing that, and going through with the rest of the  
notification is probably a good idea in practice.

> Not sure it's worth it though.

I live in a world that supposedly has great networks and all, but I very  
regularly (several times most days) have images fail to load. Since the  
image shouldn't be critical to the notification, it would be helpful just  
to get the rest of it...

Hmm. There's no way to provide a text equivalent to the icon. If it is  
possible to display the notification without the icon, as I think it  
should be, then that becomes a bug. I can raise a seperate thread for that  
if you like...

cheesr

-- 
Charles 'chaals' McCathieNevile  Opera Software, Standards Group
     je parle français -- hablo español -- jeg kan noen norsk
http://my.opera.com/chaals       Try Opera: http://www.opera.com

Received on Thursday, 21 June 2012 10:55:13 UTC