I'm successfully creating and dismissing webkit notifications like so:
notification = window.webkitNotifications.createNotification('foo.png', 'bar', 'baz')
notification.show()
setTimeout ->
notification.cancel()
, 3000
However, the notifications aren't dismissed if the user closes or refreshes the page during those three seconds, and they stay on the desktop until manually closed.
Is there a way to reliably dismiss them under these circumstances?