Open Bug 1898462 Opened 10 months ago Updated 6 months ago

Clicking a notification focuses the tab that sends the notification, but then opens a new window and focuses that (using the Flatpak)

Categories

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

Firefox 126
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugzilla.mozilla.org, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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

Steps to reproduce:

  1. Have a pinned tab with Slack open.
  2. Someone sends a message in Slack and I get a desktop notification.
  3. I click the notification.

Actual results:

The Slack tab focuses, but then a new window opens to the default homepage (i.e. not the new tab page - though I do have "Open previous windows and tabs" enabled) and steals focus.

Expected results:

Only the Slack tab should be focused.

(This is what happened when I was using the Fedora-packaged Firefox - the bug started happening after switching to the Flatpak, using the same profile.)

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
Blocks: flatpak
Priority: -- → P3

It is reproducible without pin tab, from a new profile on firefox installed with flatpak:

It will open a new firefox window.

Strangely, it doesn't happen with an old firefox install. I will try again with an old install and update this comment

The issue happens only if another firefox is installed via the system packages (rpm-ostree in my case).

Removing it fixes the issue

Flags: needinfo?(bugzilla.mozilla.org)

Sure, here you go!

Flags: needinfo?(bugzilla.mozilla.org)

Actually, also just noticed that the new window uses the profile default-release-1, whereas my regular profile is default-release. And indeed, I have the default Firefox RPM installed as well.

I wonder if that's caused by mixed Firefox DBus name:
https://searchfox.org/mozilla-central/rev/e942f7bc56cd103bba86b396ddeba5b1ab04f1a4/xpcom/glue/XREAppData.cpp#51

Do I understand correctly that if notification from Firefox/Flatpak is clicked on, regular RPM Firefox is opened? You can check that at about:profiles page.
Thanks.

Flags: needinfo?(bugzilla.mozilla.org)

@Martin That is correct; I have the Flatpak Firefox open, it shows a notification, I click it, and then the regular RPM Firefox is opened.

Flags: needinfo?(bugzilla.mozilla.org)

Okay, will try that.

Flags: needinfo?(stransky)

Which flatpak do you run? Fedora or flathub? You can get it by 'flatpak list' terminal command.
Thanks.

Flags: needinfo?(stransky) → needinfo?(bugzilla.mozilla.org)

I'm using the version from Flathub. Sorry, should've mentioned that.

Flags: needinfo?(bugzilla.mozilla.org)

Okay, will check that.

Flags: needinfo?(stransky)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: