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.
Comment 1 by shrike@chromium.org
, Jul 6 2017