Issue metadata
Sign in to add a comment
|
notifications.onButtonClicked() called instead of onClicked() when user clicks 'in a non-button area'
Reported by
javlo...@gmail.com,
Oct 19 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3243.0 Safari/537.36
Steps to reproduce the problem:
1. add listeners to chrome.notifications (see below)
2. generate a notification with chrome.notifications.create()
3. click the main area /'non-button area' of the notification (see red box in attached image)
// add these
chrome.notifications.onClicked.addListener(notificationId => {
console.log('notification onClicked')
})
chrome.notifications.onButtonClicked.addListener((notificationId, buttonIndex) => {
console.log('notification onButtonClicked', buttonIndex)
})
What is the expected behavior?
console prints: 'notification onClicked'
What went wrong?
console prints: 'notification onButtonClicked -1'
Did this work before? Yes 62.0.3202.62
Chrome version: 64.0.3243.0 Channel: canary
OS Version: OS X 10.12.6
Flash Version:
,
Oct 19 2017
Thanks! This is the same as Issue 774983 . I'm hoping to have a fix out for review today.
,
Oct 19 2017
Great thanks! I saw #774983 but wasn't entirely sure it was the same, and filed this just in case. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Oct 19 2017