Open Bug 1885512 Opened 2 years ago Updated 2 years ago

The tooltips of the selection's buttons are not redisplayed on subsequent hover

Categories

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

Desktop
All
defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox123 --- unaffected
firefox124 --- unaffected
firefox125 --- affected

People

(Reporter: sbadau, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Found in

  • Nightly 125.0a1

Affected versions

  • Nightly 125.0a1

Tested platforms

  • Affected platforms: macOS 13, Ubuntu 22.4, Windows 10 x64

Steps to reproduce

  1. Enable Screenshots and do a mouse click selection.
  2. Hover the mouse subsequently over any of the buttons of the created screenshot region: X, Copy, Download.

Expected result

  • On each mouse hover, the buttons should display tooltips: Cancel, Copy screenshot to clipboard and Download screenshot.

Actual result

  • The tooltips are displayed only the first time the button is hovered over. Subsequent hovers of the same button do not show the tooltip again.
    If I hover the mouse over other buttons or outside the Screenshots overlay then the tooltip is displayed again. For more details, please see the attached screen recording.

Regression range

  • Not a regression.

We just got the tooltips showing up in bug 1873833. :emilio, do you have any idea what is going on here?

Flags: needinfo?(emilio)
Priority: -- → P3
See Also: → 1873833
Blocks: 1870127
No longer blocks: 1789727
Priority: P3 → P2

I cannot repro this on either macOS or Linux, what am I missing? Have you been able to repro this sam?

Flags: needinfo?(emilio) → needinfo?(sfoster)

Ah, nevermind, if you hover over another button then the problem is fixed. But sure, looks like a bug, will look.

Flags: needinfo?(sfoster) → needinfo?(emilio)

So the issue seems to be we never get a mouseout event here, so we never detect our mouse has gone out of the button...

Olli, you're familiar with this code, if you know off-hand, do you know why mousemove events arrive just fine but mouseout events don't? I guess the chrome event listeners would only see a mouse out of the anon subtree, which in this case is unfortunately the whole page?

Flags: needinfo?(emilio) → needinfo?(smaug)
Flags: needinfo?(smaug)

That would be quite big change, and likely trigger some other issues though. Perhaps we could initially limit it to some particular cases?

I'm moving this to the DOM UI Event/Focus component. Let me know or move it back if there is something we can do on the front-end to fix this for the Screenshots case specifically.

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

I don't think we need to block shipping the new Screenshots implementation on this bug.

No longer blocks: 1870127
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: