[X11] Tooltips stay and never disappear when Alt+Tabbing in Linux
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: julienw, Assigned: emilio)
References
(Blocks 1 open bug, Regressed 2 open bugs, Regression)
Details
(Keywords: regression, Whiteboard: [stockwell disable-recommended])
Crash Data
Attachments
(3 files)
I'm using Gnome 3.38 on Debian Stable, and Firefox Nightly 20221025094808 (but I see this for some time now).
When I hover the mouse on something with a tooltip (such as a tab in the tab strip, or the hamburger menu), and then switch to another virtual desktop, the tooltip stays displayed and never disappear until I come back to the initial virtual desktop.
This doesn't seem to happen on thunderbird v91.13 20220908191136 so this might be a regression, I'll run a mozregression.
Reporter | ||
Comment 1•2 years ago
|
||
mozregression result: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=d1eb6fe5a1fa5457425c5a33f212516a5eeaa381&tochange=498e0e6f9b19107c8c17525a3d01a659f89002e8
This points to bug 1756903.
Reporter | ||
Comment 2•2 years ago
|
||
This happens also when I switch to another window in the same virtual desktop.
Reporter | ||
Comment 3•2 years ago
|
||
Reporter | ||
Comment 4•2 years ago
|
||
In this screencast, at the end I'm switching virtual desktop but for some reason the recorder doesn't see it :-) but you get the idea.
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Set release status flags based on info from the regressing bug 1756903
:emilio, since you are the author of the regressor, bug 1756903, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 6•2 years ago
|
||
Can you attach about:support contents? Presumably you're using X11, though it probably repros on Wayland as well.
Reporter | ||
Comment 7•2 years ago
|
||
sure, here it is!
Indeed it looks like I'm on X11 here. I kind of thought I was on XWayland... but maybe I switched some time ago and forgot to switch bacK.
Assignee | ||
Comment 8•2 years ago
|
||
Are you sure of the regression range? I can still reproduce with MOZ_GTK_TITLEBAR_DECORATION=system
, which uses the old code-path...
Assignee | ||
Comment 9•2 years ago
|
||
Martin do you know how this is supposed to work? I don't see any particular code to hide tooltips on blur so my guess is that this is supposed to be handled by GTK...
Comment 10•2 years ago
•
|
||
It may be caused by different widget hierarchy. We hide tooltips on any event we get (keyboard/mouse) and that's handled by FF itself at nsXULTooltipListener::HideTooltip().
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 11•2 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)
Are you sure of the regression range? I can still reproduce with
MOZ_GTK_TITLEBAR_DECORATION=system
, which uses the old code-path...
Mmm definitely I don't reproduce with this env variable, on latest nightly 20221102094537, on my computer.
Assignee | ||
Comment 12•2 years ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #10)
It may be caused by different widget hierarchy. We hide tooltips on any event we get (keyboard/mouse) and that's handled by FF itself at nsXULTooltipListener::HideTooltip().
Hmm, but there's nothing that hides on window blur is it? Should CheckForRollup
deal with tooltips somehow?
(In reply to Julien Wajsberg [:julienw] from comment #11)
(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)
Are you sure of the regression range? I can still reproduce with
MOZ_GTK_TITLEBAR_DECORATION=system
, which uses the old code-path...Mmm definitely I don't reproduce with this env variable, on latest nightly 20221102094537, on my computer.
Can you manage to capture a log with MOZ_LOG=Widget:5,WidgetPopup:5 MOZ_GTK_TITLEBAR_DECORATION=system
? That might tell us where this stuff is handled in the working configuration... I still haven't managed to not reproduce this...
Reporter | ||
Comment 13•2 years ago
|
||
I took a profile with this profile + putting the logs in markers => https://share.firefox.dev/3zCw5Wj
Hopefully this will be even more useful :-)
BTW I see from the screenshots in this profile that we're missing the CompositorScreenshotWindowDestroyed for these "windows"... This seems to be the case also without MOZ_GTK_TITLEBAR_DECORATION=system
. I'll file a bug about that.
Reporter | ||
Comment 14•2 years ago
|
||
I can try to do a rr recording if needed, tell me if that would be useful.
Assignee | ||
Comment 15•2 years ago
|
||
Can I see the native stack of a marker? In particular I want to know the stack of this one:
(WidgetPopup) [7f756d5c5000]: nsWindow::Show state 0 frame Frame(7f7576d6ba50) tooltip
Reporter | ||
Comment 16•2 years ago
|
||
I made another profile with the stacks for the log markers => https://share.firefox.dev/3T2GLV8
FTR, to get this, one has to add profilerstacks
to MOZ_LOG
.
Comment 17•2 years ago
|
||
Set release status flags based on info from the regressing bug 1756903
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 18•2 years ago
|
||
The stacks of the markers in comment 16 don't seem to work btw, they all have:
XREMain::XRE_main
(root)
Reporter | ||
Comment 20•2 years ago
|
||
From bug 1803058, it looks like it's not just Gnome but also KDE.
Reporter | ||
Comment 21•2 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #18)
The stacks of the markers in comment 16 don't seem to work btw, they all have:
XREMain::XRE_main (root)
It is super weird, some logs do have proper stacks but most don't... I'll do another profile for you.
Reporter | ||
Comment 22•2 years ago
|
||
Sadly I'm hitting bug 1779257... No native stacks for markers on Linux until somebody fixes this unfortunate bug.
Assignee | ||
Comment 23•2 years ago
|
||
The main issue is the confusion between mGdkWindow and the toplevel when
we draw with client decorations. Though something else broke since we
enabled them and now even with MOZ_GTK_TITLEBAR_DECORATION=system the
bug reproduces.
The thing that's supposed to hide the tooltip on nsXULTooltipListener is
the mouseout event handler, but without this fix we would upgrade the
eMouseExitFromWidget to a synthesized mouse move here:
Make leave-notify handling properly parallel to enter-notify in order to
properly notify gecko of the mouse leaving the window, thus fixing the
bug.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 24•2 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c3b662ef3fc Fix leave-notify handling on X11. r=stransky
Comment 25•2 years ago
|
||
Backed out for turning Bug 1775659 into permafail on linux.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=398506761&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/0cda34ba739113cc7e411f6b1676f43d9c0ef93e
Updated•2 years ago
|
Assignee | ||
Comment 26•2 years ago
|
||
Wow, what a mess, see the updated commit message o.O
Comment 28•2 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b1c242dc2e0 Fix leave-notify handling on X11 (and stop doing pointer grabbing there). r=stransky
Comment 29•2 years ago
|
||
bugherder |
Comment 31•2 years ago
|
||
Copying crash signatures from duplicate bugs.
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Reporter | ||
Comment 33•2 years ago
|
||
Hey Emilio, I'm running with Nightly 20221213041109, but it looks like it still happens here.
This Firefox runs on xwayland.
On my other Firefox running on wayland, this doesn't happen as expected.
Is there anything you'd like me to try?
Assignee | ||
Comment 34•2 years ago
|
||
I can't repro on the latest nightly on either X11 nor XWayland (nor Wayland of course). I'm using a keyboard shortcut to switch virtual desktops. Before the patch, I could trivially reproduce on X11 by just Alt+Tab-ing to move the Firefox window behind another.
I added some logging here that should show up when switching desktops (if it doesn't then it's an X server bug I suspect). Do you see that? Let's file another bug if you can still repro, with more details about your set-up? I'm using a keyboard shortcut to switch virtual desktops and I don't see this, but the virtual desktop switch on my machine has a rather fancy animation, so maybe we're not using the same setup.
Reporter | ||
Comment 35•2 years ago
|
||
This doesn't reproduce with MOZ_GTK_TITLEBAR_DECORATION=system
but this does reproduce without it. I'll file a separate bug.
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 38•2 years ago
|
||
backout |
This was backed out from 109 for the RC2 build to avoid shipping bug 1805939.
https://hg.mozilla.org/releases/mozilla-release/rev/d6f4c3448906
Updated•1 year ago
|
Description
•