Open Bug 1896457 Opened 1 month ago Updated 1 month ago

"Firefox is ready" notifications on GNOME

Categories

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

Firefox 125
defect

Tracking

()

People

(Reporter: mail, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

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

Steps to reproduce:

Open a link from a different app, e.g., by running xdg-open https://mozilla.org

Actual results:

I get a notification that "Firefox is ready" (see attached screenshot).

Expected results:

Firefox should gain focus.

There is some explanation by the devs on how to implement focus stealing correctly here: https://discourse.gnome.org/t/cross-process-window-activation-on-wayland/20306/3

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

Component: Untriaged → DOM: Notifications
Product: Firefox → Core

Probably a dupe of bug 1873981
I'll let you check that :stransky. Also, is it normal bug 1873981 is still unconfirmed?

Blocks: wayland
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(stransky)
See Also: → 1873981

(In reply to Clément Lefèvre from comment #3)

Probably a dupe of https://bugzilla.mozilla.org/show_bug.cgi?id=1873981
I'll let you check that :stransky. Also, is it normal https://bugzilla.mozilla.org/show_bug.cgi?id=1873981 is still unconfirmed?

Yes, I think it is the same issue. I was not able to find it before reporting this one...

It's tracked here - https://gitlab.gnome.org/GNOME/mutter/-/issues/673
We can't use xdg_activation_v1. If you want to transfer focus by xdg_activation_v1, you need already focused application which moves focus to another window and this is not the case, you launch xdg-open from terminal, not from Firefox. All Firefox windows are unfocused so there isn't any focus to transfer, we don't have any.

Flags: needinfo?(stransky)
Component: DOM: Notifications → Widget: Gtk

Thanks for the explanation. I didn't really understand how this protocol works until your comment, Martin. One thing I was wondering is whether this was a bug with Firefox or whatever app is trying to open a link in Firefox.

I, for example, see this as well when clicking links in Thunderbird. Should I open a separate bug for Thunderbird then?

If you want to override https://gitlab.gnome.org/GNOME/mutter/-/issues/673 you need is to install this GNOME extension - https://extensions.gnome.org/extension/6385/steal-my-focus-window/ (I use it by myself).

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

Attachment

General

Creator:
Created:
Updated:
Size: