[REGRESSION] Firefox is ignoring Lubuntu's theme settings entirely

Bug #2011758 reported by Aaron Rainbolt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
New
Low
Unassigned

Bug Description

Steps to reproduce:

1. Boot the latest Lubuntu Lunar ISO.
2. Open KCalc and note the theming on the title bar.
3. Open Firefox.

Expected result: Theming should be consistent between all apps, including KCalc and Firefox.

Actual result: Firefox's title bar has distinctively GNOME theming, which looks out of place.

Additional info:

This bug seems to have coincided with bugs.launchpad.net/ubuntu/+source/openbox/+bug/2011753. Since both bugs appear Snap-related, this might not be coincidental.

I'm wondering if maybe Firefox is ignoring or is unable to read XDG settings somehow? That seems like it might cause this.

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: snapd 2.58.3+23.04ubuntu1
ProcVersionSignature: Ubuntu 6.1.0-16.16-generic 6.1.6
Uname: Linux 6.1.0-16-generic x86_64
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Wed Mar 15 20:48:51 2023
InstallationDate: Installed on 2023-03-16 (0 days ago)
InstallationMedia: Lubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230314)
SnapChanges: no changes found
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Worthy of note, not all Snaps behave this way - VSCode and Chromium both seem to obey Lubuntu's theming.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

OK, so I found out the source of the problem. If you right-click on Firefox's title bar, there's a "Customize toolbar..." button you can press. That will open a tab called "Customize Firefox", and in the bottom-right corner of that screen there's a checkbox "Title Bar" that is unchecked. It should be checked, and checking it immediately fixes the theme issue.

This box is checked by default in Kubuntu 22.04, so something must have changed that made it no longer checked by default.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Further info, the exact setting is in ~/snap/firefox/common/.mozilla/firefox/<profile>.default/prefs.js:

    user_pref("browser.tabs.inTitlebar", 1);

That "1" needs to be set to 0.

summary: - Firefox is ignoring Lubuntu's theme settings entirely
+ [REGRESSION] Firefox is ignoring Lubuntu's theme settings entirely
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

A bit further investigation, and one can also drop a "user.js" file into the <profile>.default directory with "user_pref("browser.tabs.inTitlebar", 0);" in it and that will also fix the problem. Perhaps some component of the Snap packaging (possibly the launcher) can be modified to write this file on first launch?

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue there isn't a snapd one, one would argue it's not a bug but just a default setting choice from upstream. Mozilla owns the snap and the default settings choice so that should be reported to them on https://bugzilla.mozilla.org

affects: snapd (Ubuntu) → firefox (Ubuntu)
Changed in firefox (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Ah, I thought this was probably related to the new GNOME snap thingy or possibly a configuration change in the Snap itself. In that instance I will take it upstream.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

I reported this upstream as https://bugzilla.mozilla.org/show_bug.cgi?id=1823086. The answer I got ultimately was:

-----

So there are two things that are different:

* System titlebar is hidden: That's by design, you can go to right click -> Customize Toolbar ... and uncheck Titlebar to get the older behavior, see bug 1812289.
* Selection color etc is different to other GTK3 apps (try apt install gedit for example). That's on the Snap config afaict.

-----

I guess that makes sense, but it means that if we want the old behavior back, we'll have to change something on our end.

Changed in firefox (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.