firefox-esr 102.2.0-r1 breaks mobile-config-firefox and existing profiles
Describe your issue
The firefox-esr package version 102.2.0-r1 (aports commit 525736254c52aa7dc0c9c7d7fdfef94dae3eba1c) moved the installation directory from /usr/lib/firefox/
to /usr/lib/firefox-esr/
, and now expects to find profiles in ~/.mozilla/firefox-esr/
instead of ~/.mozilla/firefox/
.
What's the expected behaviour?
Firefox ESR should use the existing profiles and use the mobile-friendly UI settings.
What's the current behaviour?
Firefox ESR creates a new profile on the first start after update to 102.2.0-r1 and shows the desktop UI.
How to reproduce your issue?
Update the firefox-esr package to 102.2.0-r1 and restart Firefox.
What device are you using?
pine64-pinephone
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.06
-
v21.12
(supported until 2022-07-12) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway)
Other
-
No environment ("none" in pmbootstrap) -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
LXQt -
fbkeyboard -
i3wm -
Sxmo (Xorg/Dwm) -
console UI -
framebufferphone
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
Workarounds
- Copying
/usr/lib/firefox/mobile-config-autoconfig.js
and/usr/lib/firefox/defaults/pref/mobile-config-prefs.js
to matching locations in/usr/lib/firefox-esr/
makes mobile-config-firefox work again. I assume that change should be applied to the package. - It's possible to migrate an existing profile by copying the profile subdirectory of
~/.mozilla/firefox/
to~/.mozilla/firefox-esr/
and adding a matching profile entry to~/.mozilla/firefox-esr/profiles.ini
. I'm not sure if there's a good way to automate this migration, an edge blog post warning users might be sufficient.