Open Bug 1834247 Opened 1 year ago Updated 1 year ago

Mousing over options in select element inside button triggers dragstart event

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 113
Desktop
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: rsimoes, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0

Steps to reproduce:

This appears to only happen on Firefox for Linux.

  1. Open a select element that is contained in a button (that is contained in a draggable element).
  2. Mouse over the select element's options.
  3. Mouse out of the select element's options.

Reproduction HTML: https://codepen.io/stwlam/pen/NWOejer

Actual results:

A dragstart event is triggered for the draggable parent.

Expected results:

A dragstart event is not triggered for the draggable parent.

Component: Untriaged → Widget: Gtk
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → Desktop

Looks more like layout than Linux/Widget issue. Emilio, any idea?
Thanks.

Blocks: linuxdad
Flags: needinfo?(emilio)
Priority: -- → P3

Kinda? Not quite sure actually. So this code opens the dropdown on mousedown.

Presumably we never send the mouseup, but we keep sending mousemoves to content? Seems like that could realistically trigger a drag start.

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.