[GNOME/Wayland] Browser Tabs does not focus Firefox window on another workspace
System information
- Version: v0.28.1 (e680237b0)
- Build info: GCC 16.2.1 - Release
- Provenance: copr
- OS: Fedora Linux 44 (Workstation Edition) - 44
- QT Platform: wayland
- DE: GNOME/Wayland
Describe the bug
When using Search Browser Tabs with Firefox on GNOME/Wayland, selecting a tab whose Firefox window is located on another GNOME workspace does not switch to that workspace or focus the Firefox window.
Instead, GNOME shows a notification indicating that the Firefox window is ready/active. Only after clicking that notification does GNOME switch to the workspace containing the target Firefox window.
The browser integration itself otherwise works: Vicinae can see and search Firefox tabs.
This is especially inconvenient when multiple Firefox windows are open on different GNOME workspaces, since the expected workflow is to search for a tab in Vicinae and immediately jump to the corresponding Firefox window.
To Reproduce
- Run GNOME on Wayland.
- Open a Firefox window on workspace 1.
- Open another Firefox window on workspace 2.
- Open different tabs in the two Firefox windows so they can be easily distinguished.
- While on workspace 1, open Vicinae.
- Run Search Browser Tabs.
- Select a tab that belongs to the Firefox window on workspace 2.
- Press Enter.
Expected behavior
Vicinae should:
- activate the selected Firefox tab;
- switch GNOME to the workspace containing that Firefox window;
- focus the corresponding Firefox window.
Actual behavior
GNOME stays on the current workspace.
A GNOME notification appears indicating that Firefox is ready/active. Clicking that notification then switches to the other workspace and focuses Firefox.
Environment
- Fedora Linux 44
- GNOME Shell 50.4
- Wayland session
- Vicinae 0.28.1
- Vicinae commit: e680237b0
- Build: GCC 16.2.1 - Release
- Provenance: copr
- Vicinae GNOME extension: 1.7.2
- Firefox: 155.0
- Vicinae Browser Integration extension installed in Firefox
Additional context
The GNOME companion extension is installed and active. Clipboard integration works correctly, and Vicinae successfully connects to the GNOME extension over D-Bus.
The built-in Switch Windows command can focus Firefox windows on other GNOME workspaces correctly. The problem only occurs when switching through Search Browser Tabs.
The behavior looks similar to GNOME focus-stealing prevention: Firefox requests activation, but GNOME shows a "window is ready" notification instead of switching workspace/focusing the target window.
It may be related to the activation path used by Browser Tabs on GNOME/Wayland (for example, XDG activation), but I am not sure whether the appropriate fix belongs in Vicinae core, the browser integration, or the GNOME companion extension.
Source: vicinaehq/vicinae