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)
Tracking
()
People
(Reporter: bugzilla.mozilla.org, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
507.05 KB,
video/webm
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Steps to reproduce:
- Have a pinned tab with Slack open.
- Someone sends a message in Slack and I get a desktop notification.
- 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.)
Comment 1•10 months ago
|
||
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.
It is reproducible without pin tab, from a new profile on firefox installed with flatpak:
- Open the mozilla's webpush test page: https://mozilla-services.github.io/WebPushDataTestPage/
- Click on
Get subscription info
, authorize notifications,Encrypt the data
,Send the data
- Click on the notification
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
Comment 4•7 months ago
|
||
Can you please create a screencast of it?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Create_screenshot/screencast_for_a_bug_report
Thanks.
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.
Comment 7•7 months ago
|
||
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.
@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.
Comment 10•7 months ago
|
||
Which flatpak do you run? Fedora or flathub? You can get it by 'flatpak list' terminal command.
Thanks.
Reporter | ||
Comment 11•7 months ago
|
||
I'm using the version from Flathub. Sorry, should've mentioned that.
Description
•