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

Issue 803248 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

BrowserBack and BrowserForward cannot be preventDefault()ed, even in full-screen mode

Project Member Reported by jamiewa...@chromium.org, Jan 17 2018

Issue description

Chrome Version: 63.0.3239.116 (Official Build) (64-bit)
OS: ChromeOS

What steps will reproduce the problem?
(1) Visit https://jsfiddle.net/ehwokhax/ (or add an equivalent keydown event handler to any page via the console.
(2) Go full screen.
(3) Press the BrowserBack button

What is the expected result?
No navigation occurs.

What happens instead?
Back navigation occurs.

Note that other browser keyboard shortcuts, including Alt+Left can be disabled in full-screen mode via preventDefault.
 

Comment 1 by zijiehe@google.com, Jan 17 2018

This is expected, according to the comment here
https://cs.chromium.org/chromium/src/chrome/browser/ui/browser_command_controller.cc?rcl=baf611e16997ded33cae4f4b8aa691fcef8fabec&l=176, intercepting the function keys on ChromeOS is disallowed.
Thanks, Zijie, It looks like the change that introduced that predates your work to allow browser shortcuts to be intercepted in full-screen mode, so I think this bug is still valid.
Status: Assigned (was: Untriaged)

Sign in to add a comment