Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cockpit-desktop: Support Firefox flatpak #21224

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

martinpitt
Copy link
Member

RHEL 10 does not ship Firefox as RPM any more, and will instead use a flatpak. For now, check for/run the IDs of the official upstream Mozilla Firefox on flathub and the RHEL flatpak [1].

Surprisingly, flatpak run works fine inside our little network namespace.

https://issues.redhat.com/browse/RHEL-65847

[1] https://catalog.redhat.com/search?gs&q=firefox-flatpak


cockpit-desktop: Add firefox profile to hide privacy bar/tab and bookmarks

This makes the cockpit-desktop experience a bit more tasteful with
Firefox -- avoid the second broken tab (with the privacy note, which you can't
open anyway as this is an isolated network namespace), and disable data
submission to avoid the privacy hint notification bar.

Also disable the bookmark toolbar. It doesn't appear by default with the
upstream Firefox flatpak, but it does show with the Fedora version.

Move BROWSER_HOME out of the inner script into the top-level, so that
the browser profile can be created inside it.


I installed current RHEL 10 nightly ISO and confirmed the broken cockpit-desktop subscription link. With the flatpak fix, it works again, but looks rather ugly in the default profile:

noprofile

This wasn't a problem in RHEL 8/9 as that used webkit GTK. With the custom profile it looks like this:

pr

I didn't find a way to hide the tab bar. Hiding some more elements would also be nice, but let's do that as a follow-up.

RHEL 10 does not ship Firefox as RPM any more, and will instead use a
flatpak. For now, check for/run the IDs of the official upstream Mozilla Firefox
on flathub and the RHEL flatpak [1].

Surprisingly, `flatpak run` works fine inside our little network
namespace.

https://issues.redhat.com/browse/RHEL-65847

[1] https://catalog.redhat.com/search?gs&q=firefox-flatpak
src/ws/cockpit-desktop.in Fixed Show fixed Hide fixed
src/ws/cockpit-desktop.in Fixed Show fixed Hide fixed
…marks

This makes the cockpit-desktop experience a bit more tasteful with
Firefox -- avoid the second broken tab (with the privacy note, which you can't
open anyway as this is an isolated network namespace), and disable data
submission to avoid the privacy hint notification bar.

Also disable the bookmark toolbar. It doesn't appear by default with the
upstream Firefox flatpak, but it does show with the Fedora version.

Move `BROWSER_HOME` out of the inner script into the top-level, so that
the browser profile can be created inside it.
@jelly jelly merged commit 900ea16 into cockpit-project:main Nov 6, 2024
85 checks passed
@martinpitt martinpitt deleted the flatpak branch November 6, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants