Closed Bug 1684607 Opened 5 years ago Closed 5 years ago

Clicking on a dropdown or on a context menu immediately selects the first option

Categories

(Core :: Layout: Form Controls, defect)

Firefox 84
defect

Tracking

()

RESOLVED DUPLICATE of bug 1400750
Tracking Status
firefox-esr78 --- wontfix
firefox84 --- wontfix
firefox85 --- wontfix
firefox86 --- wontfix

People

(Reporter: liam.ozog, Unassigned)

References

Details

Attachments

(2 files)

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

Steps to reproduce:

Clicked on a dropdown to open it

Actual results:

The first option in the menu that pops up gets clicked on.

In the attached video, I clicked once to open the dropdown, and you can see that the "2020" option gets selected by itself. The second time I open the dropdown, it doesn't happen.

Expected results:

The menu that pops up should stay open until I select an option or click away

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

I figured out how to trigger it. It happens with right-click context menus, too. But only if the cursor is hovering over an option when the dropdown opens.

I'll attach another screen capture. First, I right-click a link to open a context menu, and it works as expected. Next, I right-click to open it and move the cursor to be over the first option as it opens and it exhibits the bugged behaviour.

Triggering the bug in a context menu. See my previous comment

Component: Layout: Form Controls → DOM: UI Events & Focus Handling

I'm pretty sure the dropdown variant of this bug is already filed but I'm not sure we knew the same issue applied to context menus.

See Also: → 1400750
See Also: → 1399664
Component: DOM: UI Events & Focus Handling → Layout: Form Controls

I confirm that clicking on a dropdown or context menu - automatically opens the first option that was moused hovered. Reproduced this issue on Mac OS X 10.15 and Max OS X 11.1 using a magic mouse on the latest Nightly, Firefox 84.0.2, Firefox 85 beta, and Firefox 78.7.0 esr.

This issue is also reproducible on Chrome 87.0.4280.88 but not on Safari 14.0.2.

Emilio, do you consider this as a dupe of Bug 1400750?

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(emilio)
Summary: Clicking on a dropdown immediately selects the first option → Clicking on a dropdown or on a contecxt menu immediately selects the first option
Summary: Clicking on a dropdown or on a contecxt menu immediately selects the first option → Clicking on a dropdown or on a context menu immediately selects the first option

Hmmm, probably? Though this seems the behavior of other browsers as well, at least on Linux.

On GTK, context menus seem to ignore the mouseup if it happens "soon-ish", otherwise a left mouseup would close the menu.

I guess we have this code to try to ignore the mouseup, but maybe it's not working as expected?

Let's close as a dupe of bug 1400750, I can poke a bit when I have some time after exams.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(emilio)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: