New issue
Advanced search Search tips

Issue 737693 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Cmd+W can be captured by normal browser tab if the user just clicked off a Chrome App

Project Member Reported by mtaran@google.com, Jun 28 2017

Issue description

Chrome Version: 59.0.3071.115
OS: Mac OS 10.12.5

What steps will reproduce the problem?
(1) Install an app like the hangouts app (https://chrome.google.com/webstore/detail/google-hangouts/knipolnnllmklapflnccelgolnpehhpl?hl=en)
(2) Open new chrome tab, open the dev console and enter `document.addEventListener('keydown', e=>{console.log(e); e.preventDefault()})`
(3) Focus a window of the app, then *click* (not cmd+tab) over to the normal browser tab with the event listener.
(4) Press Cmd+W

What is the expected result? Browser tab closes.

What happens instead? The event listener is triggered and stops the browser tab from closing.

This repros on OSX. Does not seem to repro on Linux or Chrome OS. Didn't try on Windows.


Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Owner: tapted@chromium.org
[MacTriage] tapted@ - please take a look.

Components: Platform>Apps
Status: Assigned (was: Untriaged)
That's bizarre. I can repro in Version 61.0.3150.0 (Official Build) canary (64-bit). Only with Cmd+w, not Cmd+t, which is meant to be another "protected" keycode.

I suspect it's related to the mainMenu switching we do for Chrome Apps.

Also weird: it doesn't become unstuck on switching tabs. It does become unstuck on switching to a different app, or creating a new tab with Cmd+t.

This is probably obscure enough that it's not worth fixing before we tear out Chrome Apps functionality from platforms other than ChromeOS. We could probably start early with the menu-switching part, and I suspect this will go away.
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 11 2017

Labels: Hotlist-Google

Sign in to add a comment