Our web notifications do not display the icons set by webpages.
Hm, it's not straightforward. We have a URI in the UI process, and have to send it to the network process (so that the right proxy settings get used), download the resource there, pass the bytes back to the UI process, and create a GdkPixbuf there. I guess it has to happen asynchronously in WebKitNotificationProvider::show. The NotifyNotification should not be created until the image is ready.
Let's start for now with just exposing the property, so it will at least be *possible* for apps to show web notifications with icons, even if WebKit-created notifications don't have icons yet.
(In reply to comment #2)
> Let's start for now with just exposing the property, so it will at least be
> *possible* for apps to show web notifications with icons, even if
> WebKit-created notifications don't have icons yet.
This seems reasonable, because anyway it would be unclear which icon
WebKitGTK+ would use when one is not explicitly defined. I would rather
not have a default fallback icon that trying to guess “too much” and end
up with heuristics. An application which wants to add their own icon may
be better off by connecting to the “WebKitWebView::show-notification”
signal, using a GNotification instead to add the icon (and probably more),
and finally preventing the WebKitGTK+ generic notification. The following
example shows that this is really easy to do:
(Which makes me think: maybe we want to do something like that in Epiphany!)
(In reply to comment #3)
> […] I would rather not have a default fallback icon that trying to guess […]