Closed Bug 1820405 Opened 2 years ago Closed 2 years ago

CSS :hover briefly removed on mouse down (Linux)

Categories

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

Firefox 110
defect

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: matthew+bugzilla, Assigned: emilio)

Details

Attachments

(2 files)

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

Steps to reproduce:

Visited the :hover example page at
https://developer.mozilla.org/en-US/docs/Web/CSS/:hover

Hovered over the "Confirm" button in the example, then left-clicked with my
mouse.

Actual results:

The button briefly shows in non-hover: state after the start of the click.

Expected results:

The button should remain continuously in hover:state

This breaks one style of CSS-based dropdown menus, because the menu disappears
before clicking on the link takes effect.

For example, this page shows the problem:
https://www.htmldog.com/articles/suckerfish/dropdowns/example/bones1.html

Observed in 110.0.1 (as distributed from www.mozilla.org), with a clean profile, running under Debian 11.6 .

I don't see the misbehaviour in Firefox 1.02 ESR (as distributed by Debian).

I believe the misbehaviour is not present for Firefox on Windows.

This breaks one style of CSS-based dropdown menus, because the menu disappears before clicking on the link takes effect.

For example, this page shows the problem:
https://www.htmldog.com/articles/suckerfish/dropdowns/example/bones1.html

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 correct in case you think the bot is wrong.

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

Which window manager are you using etc? Can you attach your about:support?

We've seen something similar in some old WMs, but it's a WM bug it seems, see bug 1807482

Flags: needinfo?(matthew+bugzilla)
Attached file about:support text

about:support as requested

I'm using X11 with qtile as the window manager.

Flags: needinfo?(matthew+bugzilla)

If you go to about:config, change widget.gtk.ignore-bogus-leave-notify from 2 to 1, and restart, is it fixed?

Flags: needinfo?(matthew+bugzilla)

Yes, that fixes it.

Flags: needinfo?(matthew+bugzilla)
Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: -- → S3
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/18b79e01feb3 Ignore bogus enter-leave by default in lg3d/qtile. r=stransky
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
QA Whiteboard: [qa-113b-p2]

I could not reproduce this issue on my end on a 2023-03-14 Nightly build on Ubuntu 22.
Matthew, would you be so kind as to confirm the fix on the latest RC build?
Thank you.

Flags: needinfo?(matthew+bugzilla)

I've checked with that build and a clean profile, and I don't see the problem any more.

Thank you.

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

Attachment

General

Created:
Updated:
Size: