New issue
Advanced search Search tips

Issue 776227 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 774983
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



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:
 
notification.png
54.1 KB View Download
Components: -Blink UI>Notifications

Comment 2 by peter@chromium.org, Oct 19 2017

Mergedinto: 774983
Owner: peter@chromium.org
Status: Duplicate (was: Unconfirmed)
Thanks! This is the same as  Issue 774983 . I'm hoping to have a fix out for review today.

Comment 3 by javlo...@gmail.com, 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