<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] Notifications API does not expose the "tag" attribute"
href="https://bugs.webkit.org/show_bug.cgi?id=164771">164771</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[GTK] Notifications API does not expose the "tag" attribute
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Gtk
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aperez@igalia.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bugs-noreply@webkitgtk.org
</td>
</tr></table>
<p>
<div>
<pre>According to <a href="https://webkitgtk.org/reference/webkit2gtk/stable/WebKitNotification.html">https://webkitgtk.org/reference/webkit2gtk/stable/WebKitNotification.html</a>
the WebKitNotification objects expose the following attributes:
* body
* title
* id
Meanwhile, the HTML5 specification for WebNotifications includes a “tag” attribute and
a few others which are not exposed by WebKitGTK+. Documentation:
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/notification">https://developer.mozilla.org/en-US/docs/Web/API/notification</a>
In particular, the “tag” attribute can be used to indicate that one notification may
replace a previous one which has the same value for “tag”, instead of letting many
related notifications pile up in systems where replacing notifications is supported.
For example, when using “g_application_send_notification()” to display notifications
from a GTK+ application, it is possible to replace previous notifications, so it would
be desirable that WebKitGTK+ exposes the “tag” attribute in order to know when an
application running in an embedded WebKitWebView wants to replace a notification.
For an example usage of “tag” in the WebNotification API, see:
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API#Tag_example">https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API#Tag_example</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>