Bug 461421 - Wayland: Firefox/Wayland does not get the focus when clicking a link in Thunderbird
Summary: Wayland: Firefox/Wayland does not get the focus when clicking a link in Thund...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.92.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-04 13:50 UTC by frederic.parrenin@univ-grenoble-alpes.fr
Modified: 2024-01-28 16:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description frederic.parrenin@univ-grenoble-alpes.fr 2022-11-04 13:50:49 UTC
I am using a Debian Testing machine with KDE/Wayland.
I tried using Firefox/Wayland.
But when clicking a link in thunderbird, the web page is loaded in Firefox but Firefox does not get the focus.
Note that this does not happen with Firefox/X11.

STEPS TO REPRODUCE
1. Launch a KDE/Wayland session
2. Launch Thunderbird
3. Launch Firefox/Wayland
4. Click a link in Thunderbird

OBSERVED RESULT
The page is loaded in Firefox, but it does not get the focus

EXPECTED RESULT
Firefox should get the focus.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Bookworm
(available in About System)
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Note that this problem does not happen in Gnome/Wayland, it is why I report it here.
I am not sure if it is a Firefox problem or a KDE problem, though.
I also reported the bug in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1798747
Comment 1 Nicolas Fella 2022-11-04 14:14:10 UTC
This is a Thunderbird/Firefox bug, see https://bugzilla.mozilla.org/show_bug.cgi?id=1798747#c5
Comment 2 Eric Armbruster 2024-01-27 10:17:58 UTC
I am reopening on the basis that this still does not work with Plasma 6 RC 1. It probably still is an upstream bug, but what is the problem there? Everything is marked resolved?

Tbh this is my most annoying wayland bug. Could you explain maybe, Nicolas? Or point me to the relevant code?
Comment 3 Nicolas Fella 2024-01-28 15:33:51 UTC
The Firefox side is fixed, assuming Firefox runs in Wayland native mode. But that's only half of the picture.

The sending side (where the link is clicked) also must support xdg-activation. Thunderbird (in Wayland native mode) supports that
Comment 4 Eric Armbruster 2024-01-28 16:46:53 UTC
I should have been a lot more specific. I see this bug not only with thunderbird but also with krunner firefox bookmarks
Comment 5 Eric Armbruster 2024-01-28 16:47:34 UTC
(In reply to Eric Armbruster from comment #4)
> I should have been a lot more specific. I see this bug not only with
> thunderbird but also with krunner firefox bookmarks

Thunderbird actually works fine for me now.
Comment 6 Nicolas Fella 2024-01-28 16:51:39 UTC
(In reply to Eric Armbruster from comment #4)
> I should have been a lot more specific. I see this bug not only with
> thunderbird but also with krunner firefox bookmarks

The Bookmarks runner works as far as I can tell. What won't work is the browser history/tabs runner from plasma-browser-integration. That requires something like https://invent.kde.org/frameworks/krunner/-/merge_requests/96 to be implemented in KRunner