New issue
Advanced search Search tips

Issue 791790 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

preventDefault not respected for mouse forward/back buttons

Project Member Reported by jamiewa...@chromium.org, Dec 4 2017

Issue description

Chrome Version: 65.0.3285.0 (Developer Build) (64-bit)
OS: Linux

What steps will reproduce the problem?
(1) Run chrome with --enable-features=ExtendedMouseButtons
(2) Navigate to example.com. Ensure that the back button is enabled on the browser.
(3) Add an event listener for mousedown by running the following in the console:

document.addEventListener('mousedown', (event)=>{event.preventDefault(); console.log(event.button); }, false);

(4) Hit F11 (assuming that preventDefault should only work in full-screen mode, as is the case for 
(5) Click the mouse "back" button.

What is the expected result?
3 should be logged to the console and no navigation should occur. This is my understanding based on the comments for https://chromium-review.googlesource.com/c/chromium/src/+/781999:

"Allow mousedown to prevent default the back/forward actions."

What happens instead?
3 is logged to the console (so I think I've enabled the feature correctly), but Chrome navigates back to the previous page.

 
Status: WontFix (was: Untriaged)
If you check out the lastest discussion in the working group it is on mouseup..

See:
https://github.com/w3c/pointerevents/issues/191

Sorry the commit message should have been updated.

Sign in to add a comment