Closed Bug 1804877 Opened 2 years ago Closed 2 years ago

Set XDG_ACTIVATION_TOKEN when launch external application (LaunchWithURI)

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

()

Details

Attachments

(4 files)

Follow up from Bug 1767546. We should set XDG_ACTIVATION_TOKEN when external app is fired to make sure it gets focus.

Especially useful for Thunderbird when URL is opened by Firefox.

Assignee: nobody → stransky
Priority: -- → P2

Implement RequestWaylandFocus() which returns FocusRequestPromise.
It resolves to XDG token which can be used to activate Firefox window or transfered to another application.

Also use 0.5 sec timeout to reject FocusRequestPromise to make sure we don't wait forever in case of Wayland compositor bug or so.

Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/11d72eaa9cd9 [Linux] Don't log redundant window boundaries r=emilio
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/a6f5a91e18da [Wayland] Implement xdg_activation by WidgetUtilsGtk r=emilio https://hg.mozilla.org/integration/autoland/rev/800f78104e83 [Wayland] Rename nsWindow::RequestFocusWaylandWindow to nsWindow::TransferFocusToWaylandWindow() and use FocusWaylandWindow() there r=emilio https://hg.mozilla.org/integration/autoland/rev/0f042a90a90b [Wayland] Use RequestWaylandFocus()/XDG token in nsGIOService to launch external applications r=emilio
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/3ccb5417b450 [Wayland] Implement xdg_activation by WidgetUtilsGtk r=emilio https://hg.mozilla.org/integration/autoland/rev/8334a7ab8797 [Wayland] Rename nsWindow::RequestFocusWaylandWindow to nsWindow::TransferFocusToWaylandWindow() and use FocusWaylandWindow() there r=emilio https://hg.mozilla.org/integration/autoland/rev/c5f40da7312a [Wayland] Use RequestWaylandFocus()/XDG token in nsGIOService to launch external applications r=emilio
Flags: needinfo?(stransky)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: