Open Bug 1736515 Opened 3 years ago Updated 3 years ago

Click moved out of bounds of an element still triggers click event

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

Firefox 93
defect

Tracking

()

Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- wontfix
firefox93 --- wontfix
firefox94 --- wontfix
firefox95 --- fix-optional

People

(Reporter: 98zusenko, Unassigned)

References

(Regression, )

Details

(Keywords: parity-chrome, regression)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0

Steps to reproduce:

https://jsfiddle.net/ZhenyaUsenko/9bcupayj/3/

Mousedown inside a button, move cursor outside a button, mouseup

Actual results:

Button is pressed

Expected results:

Button should not be pressed

Works as expected in Chrome

Regression window(str comment#0, i.e. without -moz-)):
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=7b90628fa1e7f153e574c07626b6af5378593a45&tochange=d806a12ca46833286baf4c2f320db7d667a28883

Regression window(with -moz- prefix, data:text/html,<style>button{-moz-user-select:unset;user-select:unset;} div{ overflow: hidden;}</style><button type='button'><div>Button</div></button><script>document.querySelector('button').onclick = () => alert('clicked')</script> ):
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=f6eebcc14c22762f521fb567a9588963b8720592&tochange=61570c16c2d564c24fab36713fb169c4144453e9

Suspect: Bug 1089326

Has Regression Range: --- → yes
Has STR: --- → yes
Keywords: regression
Regressed by: 1089326
Component: Untriaged → DOM: Events
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: parity-chrome
Severity: -- → S3
Component: DOM: Events → DOM: UI Events & Focus Handling
See Also: → 1736188

Set release status flags based on info from the regressing bug 1089326

You need to log in before you can comment on or make changes to this bug.