New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 716782 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

Chrome 60 (Canary) on Mac with new Mac native notifications, buttons added are not triggering their onclick listener

Reported by ryanjold...@gmail.com, Apr 29 2017

Issue description

Chrome Version       : 60.0.3084.0
OS Version: OS X 10.12.4

What steps will reproduce the problem?

1. Show a notification using the chrome.notifications API with a custom button
2. On the Mac notification that shows, click "More", then click on the button you added in step 1

What is the expected result?

The onclick callback for that button would be fired

What happens instead of that?

The onclick listener for the notification is fired (thus triggering the wrong action)


UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3084.0 Safari/537.36



 

Comment 1 by kochi@chromium.org, May 1 2017

Components: Platform>Extensions>API
Can anyone working on extensions API confirm this?
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
ryanjoldenburg@ Could you please help us with the sample html test case and expected behavior of this issue for further triage from TE-End.

Thank You...
See the attached extension to reproduce the bug.

Loading the extension will show a notification. Click on the button labeled "Button".

Notice that pre-Canary 60 on Mac, it prints onButtonClicked to the console. With the new Canary, it prints onClicked instead.
notifications-bug.zip
3.7 KB Download
Project Member

Comment 4 by sheriffbot@chromium.org, May 2 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "kkaluri@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by peter@chromium.org, May 2 2017

Cc: ppeter@chromium.org
Components: -Platform>Extensions>API UI>Notifications
Labels: -Pri-3 M-59 Pri-1
Owner: miguelg@chromium.org
Status: Assigned (was: Unconfirmed)
Thank you for your report, we'll look into this!
Project Member

Comment 6 by bugdroid1@chromium.org, May 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e5d0ff4df4be89a8ec26ab26d7d468a54c294616

commit e5d0ff4df4be89a8ec26ab26d7d468a54c294616
Author: miguelg <miguelg@chromium.org>
Date: Wed May 03 00:31:04 2017

Consider Button clicks for extension notifications

BUG= 716782 

Review-Url: https://codereview.chromium.org/2855983002
Cr-Commit-Position: refs/heads/master@{#468836}

[modify] https://crrev.com/e5d0ff4df4be89a8ec26ab26d7d468a54c294616/chrome/browser/notifications/non_persistent_notification_handler.cc

Comment 7 by peter@chromium.org, May 3 2017

Labels: ReleaseBlock-Stable Merge-Request-59
Requesting merge for M59. Thanks for the quick fix Miguel! :)

Comment 8 by peter@chromium.org, May 3 2017

Cc: -ppeter@chromium.org peter@chromium.org
NP, it was an oversight on my part after all :)

This made it into canary 60.0.3088.0 and I have verified it works with both an extension and a chrome app. We will merge it in the current Beta release as well.
Project Member

Comment 10 by sheriffbot@chromium.org, May 4 2017

Labels: -Merge-Request-59 Hotlist-Merge-Approved Merge-Approved-59
Your change meets the bar and is auto-approved for M59. Please go ahead and merge the CL to branch 3071 manually. Please contact milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), gkihumba@(ChromeOS), Abdul Syed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 11 by bugdroid1@chromium.org, May 4 2017

Labels: -merge-approved-59 merge-merged-3071
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6fe1040fe4e90f8d9f4a81ef49c5047a5386a5ae

commit 6fe1040fe4e90f8d9f4a81ef49c5047a5386a5ae
Author: Miguel Garcia <miguelg@chromium.org>
Date: Thu May 04 09:09:43 2017

Consider Button clicks for extension notifications

BUG= 716782 

Review-Url: https://codereview.chromium.org/2855983002
Cr-Commit-Position: refs/heads/master@{#468836}
(cherry picked from commit e5d0ff4df4be89a8ec26ab26d7d468a54c294616)

Review-Url: https://codereview.chromium.org/2859153002 .
Cr-Commit-Position: refs/branch-heads/3071@{#395}
Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641}

[modify] https://crrev.com/6fe1040fe4e90f8d9f4a81ef49c5047a5386a5ae/chrome/browser/notifications/non_persistent_notification_handler.cc

Status: Fixed (was: Assigned)
Labels: TE-Verified-59.0.3071.47 TE-Verified-59
Tested the issue on Mac-10.12.4 using chrome version 59.0.3071.47 with the steps mentioned in comment#0 and 3.
Observed that the fix is working as expected. Hence adding TE-Verified labels.
Please find the attached screenshot for the same.

Thanks!!
716782.png
112 KB View Download
Labels: -TE-Verified-59 TE-Verified-M59

Sign in to add a comment