New issue
Advanced search Search tips

Issue 739851 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug


Participants' hotlists:
Hotlist-1


Sign in to add a comment

Linux native notification - opens Settings instead of honoring onclick() event

Reported by gluna...@gmail.com, Jul 6 2017

Issue description

UserAgent: 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
 
Owner: thomasanderson@chromium.org
Cc: thestig@chromium.org peter@chromium.org
Seems to work fine on GNOME for me.  Am I missing a step?
notification_click.mp4
602 KB View Download

Comment 3 by gluna...@gmail.com, 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.
out-3.ogv
393 KB View Download
Hm.. Can you run
$ dbus-monitor --session "interface='org.freedesktop.Notifications'
And do the test, and attach the output here?
bus_monitor.txt
1.0 KB View Download

Comment 5 by gluna...@gmail.com, 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


dbus-notifications-log.txt
4.5 KB View Download
Status: Fixed (was: Unconfirmed)
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 :)

Comment 7 Deleted

Comment 8 by gluna...@gmail.com, 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

Comment 9 by gluna...@gmail.com, 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