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

Issue 609737 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 385088
Owner:
Last visit > 30 days ago
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

RequestPermission callback not called when pressing Esc

Reported by tsek...@gmail.com, May 6 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce the problem:
1. Open a page that request permissions to display notifications 
2. When Notification bubble appears to ask you for permissions - press Escape

Result: Notification bubble disappears, but the request callback is not called.

Notification.requestPermission().then(callback);

Callback is never called when pressing ESC on request permission bubble

What is the expected behavior?
Callback to be called when pressing esc and request permissions bubble is closed.

What went wrong?
NO callback is called

Did this work before? N/A 

Chrome version: 50.0.2661.94  Channel: stable
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0
 
Labels: Needs-Feedback
Can you provide a sample page/code with the callback?

Comment 2 by tsek...@gmail.com, May 12 2016

Here it is:
https://jsfiddle.net/9wemx9yL/

If you press the x(close) button of the bubble, the callback is called with default permission level. 

If you press Allow - callback is called with granted permission level.

If you press Decline - callback is called with denied permission level.

But if you click somewhere on the bubble to focus it and then press escape key - the notification bubble is closed without calling the callback. I would expect the callback  to be called with default permission level as is with clicking on the x(close) button.
Project Member

Comment 3 by sheriffbot@chromium.org, May 13 2016

Labels: -Needs-Feedback Needs-Review
Owner: spqc...@chromium.org
Thank you for providing more feedback. Adding requester "spqchan@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -UI UI>Browser>Permissions
Labels: -Needs-Review
Status: Untriaged (was: Unconfirmed)
Components: UI>Browser>Bubbles
Mergedinto: 385088
Status: Duplicate (was: Untriaged)

Sign in to add a comment