Closed Bug 1863116 Opened 1 year ago Closed 11 months ago

[flatpak] Remove org.freedesktop.Notifications permission from flatpak

Categories

(Firefox Build System :: Third Party Packaging, defect)

Firefox 121
x86_64
Linux
defect

Tracking

(firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: bbhtt.zn0i8, Assigned: bbhtt.zn0i8)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

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

Steps to reproduce:

This permission https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/docker/firefox-flatpak/runme.sh#l177 is no longer necessary as the Firefox baseapp comes with libnotify >= 0.8.0 https://github.com/flathub/org.mozilla.firefox.BaseApp/blob/8c691648cb9f87b5378c57cd73862a92f8b1c96a/org.mozilla.firefox.BaseApp.json#L63

libnotify automatically uses the portal https://flatpak.github.io/xdg-desktop-portal/docs/#gdbus-org.freedesktop.portal.Notification for notifications when run inside snap or flatpak since 0.8.0 https://gitlab.gnome.org/GNOME/libnotify/-/blob/69aff6e5fa2842e00b409c348bd73188548828b3/NEWS#L25

This permission is unused.

Component: Untriaged → Third Party Packaging
OS: Unspecified → Linux
Product: Firefox → Firefox Build System
Hardware: Unspecified → x86_64
Depends on: flatpak

I can confirm it works when run with flatpak run --no-talk-name=org.freedesktop.Notifications org.mozilla.firefox, then going to https://www.bennish.net/web-notifications.html and triggering a desktop notification (Fedora 39/GNOME 45). I did the same change for the nightly flatpak I maintain https://gitlab.com/projects261/firefox-nightly-flatpak/-/commit/fd64baaa87cca73698f4a80d1d2587e86f02d3ae

Assignee: nobody → bbhtt.zn0i8
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2cf1b902ea75 Remove org.freedesktop.Notifications permission from flatpak. r=stransky
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: