Open Bug 1766269 Opened 2 years ago Updated 8 months ago

Previously opened Firefox window is not focused when opening a link from other applications

Categories

(Core :: Widget: Gtk, enhancement, P3)

Firefox 99
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: pengwyuan, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

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

Steps to reproduce:

I have a Firefox window opened previously and click on a hyperlink outside Firefox.
Tested on KDE Plasma with Wayland-enabled Firefox

Actual results:

Firefox opens that link as a new tab in the previous window, but that window is not focused

Expected results:

The previous opened Firefox window is focused

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3

Related activity on KDE side, to at least get the "demand attention" orange background in the taskbar: https://bugs.kde.org/show_bug.cgi?id=450996#c5 (backported to KDE 5.24.5):

Fixed by Aleix Pol with https://invent.kde.org/plasma/kwin/-/merge_requests/2206/diffs?commit_id=52035f43b90738e2efb4fd7b482719c1ea458578 in Plasma 5.25! It may be backported to 5.24, too.

It requires that the app in question actually request activation, though. All KDE apps do at this point, but some 3rd-party apps do not, notable Firefox and Thunderbird, in my testing. So it's up to them to implement the Wayland activation protocol.

xdg_activation is supported on Firefox side, see Bug 1692119
Can you run Firefox on terminal with MOZ_LOG="Widget:5" env variable and attach the log here?
Thanks.

Flags: needinfo?(pengwyuan)
Attached file test.log
Flags: needinfo?(pengwyuan)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #3)

xdg_activation is supported on Firefox side, see Bug 1692119
Can you run Firefox on terminal with MOZ_LOG="Widget:5" env variable and attach the log here?
Thanks.

Sure, the log file is attached

I just tested that on Gnome (Fedora 35) and it works as expected.

On GNOME it happens too, using latest Fedora 38, sometimes it works well, sometimes just a notification something like "window is ready".

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: