Linux native notification - opens Settings instead of honoring onclick() event
Reported by
gluna...@gmail.com,
Jul 6 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce the problem: 0. Enable chrome://flags/#enable-native-notifications 1. Visit https://w3c-test.org/notifications/event-onclick-manual.html 2. Allow notification 3. Revisit https://w3c-test.org/notifications/event-onclick-manual.html 4. Click on the body of the native notification What is the expected behavior? The click should be called back to the originating page and the onclick event triggered. In this case generate a test report. What went wrong? In GNOME shell, it always opens the Chromium Settings notification. Did this work before? N/A Chrome version: 59.0.3071.115 Channel: stable OS Version: Fedora 23 Flash Version: N/A Works in Firefox 50.1.0 Works in Epiphany 3.18.5
,
Jul 6 2017
Seems to work fine on GNOME for me. Am I missing a step?
,
Jul 6 2017
Thanks Thomas, how odd... It clearly does not behave that way on my system. Video attached. There is a possibility it is gnome-shell but it would be odd since Epiphany and Firefox do the right thing.
,
Jul 6 2017
Hm.. Can you run $ dbus-monitor --session "interface='org.freedesktop.Notifications' And do the test, and attach the output here?
,
Jul 6 2017
Here is the bus output (attached)
method call time=1499374337.205669 sender=:1.79 -> destination=:1.15 serial=203930 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string ""
uint32 0
string ""
string "Please click on the notification."
string "Click me to test clicking on notifications."
array [
string "default"
string ""
string "settings"
string "Settings"
]
array [
]
int32 -1
,
Jul 6 2017
Ah, I see now. You're using the stable channel (Chrome 59), but this issue has since been fixed in dev (Chrome 61). Good thing we didn't officially release the feature in 59 :)
,
Jul 6 2017
Thank you so much for confirming that Chrome 61 has proper support for this. I can not test 61 because nss is too old on my machine, I update the OS next week when Fedora 26 comes out and enjoy native notification then. Cheers, -Guy
,
Jul 7 2017
Confirming that it does behave properly on Version 61.0.3141.7 (Official Build) dev (64-bit) running on Fedora 26. Will test with our application tomorrow to make sure the events work properly there. Thanks again. |
|||
►
Sign in to add a comment |
|||
Comment 1 by thomasanderson@chromium.org
, Jul 6 2017