Open Bug 1736593 Opened 5 years ago Updated 5 years ago

Click moved out of bounds of a button does not trigger click at all

Categories

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

Firefox 93
defect

Tracking

()

People

(Reporter: 98zusenko, Unassigned)

References

()

Details

(Keywords: parity-chrome)

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/rxbajon8/6/

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

Actual results:

No click event on window

Expected results:

If the button is pressed on one element and the pointer is moved outside the element before the button is released, the event is fired on the most specific ancestor element that contained both elements

https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event

There should be click event on body, window, etc.

Works as expected in Chrome

The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core

I wonder if this is also a regression of bug 1089326 (like bug 1736515).
Hi Alice, could you help try to find a regression window? Thank!

Flags: needinfo?(alice0775)

This is reproduced in all version of Firefox(1.0-95.0a1) Windows10.

URL: data:text/html,<button>Button</button...
Status: UNCONFIRMED → NEW
Has Regression Range: --- → irrelevant
Has STR: --- → yes
Ever confirmed: true
Flags: needinfo?(alice0775)
Keywords: parity-chrome

Thanks!

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.