Open Bug 1755746 Opened 2 years ago Updated 2 years ago

When mousedown is on an element, but mouseup outside of the window, window gets "mouseup" but no "click"

Categories

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

Desktop
All
defect

Tracking

()

Webcompat Priority P3

People

(Reporter: julienw, Unassigned)

References

Details

Attachments

(1 file)

Attached file click2.html

STR:

  1. Open the attachment.
  2. Make sure the window isn't fullscreen.
  3. "mousedown" on one of the colored squares, "mouseup" outside of the window.

=> We get a "mouseup" event on the window, but no "click" event.

I think that either we should have none of them (the "mouseup" is actually happening outside of the window) or both (as the window is a common ancestor that gets both "mousedown" and "mouseup").

My understanding is that removing the "mouseup" event in this case could break existing websites, so instead we could add the "click" event.

Note: the STR works as expected in Chrome, I mean I get both mouseup and click events on window.

See Also: → 1755498
Webcompat Priority: --- → ?

I think that if bug 1755752 is valid, this is also valid.

Depends on: 1755752
Webcompat Priority: ? → P3

Aligning to Webcompat Priority.

Severity: -- → S3
OS: Unspecified → All
Priority: -- → P3
Hardware: Unspecified → Desktop
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: