[Webkit-unassigned] [Bug 164986] [GTK] Notifications API does not respect or expose the "icon" attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 4 16:46:20 PST 2017


--- Comment #3 from Adrian Perez <aperez at igalia.com> ---
(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!)

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170205/84be96bb/attachment.html>

More information about the webkit-unassigned mailing list