Closed gjask closed 5 months ago
I can't reproduce this here with LANG=cs_CZ.utf8 /usr/bin/firefox
. Firefox correctly loads the langpack version 121 and is translated.
From the timestamp, this must be an ostree-packaged file, but maybe Firefox has a stale cache? Can you try a fresh profile, or even a fresh user account?
From the timestamp, this must be an ostree-packaged file, but maybe Firefox has a stale cache? Can you try a fresh profile, or even a fresh user account?
Yeah, it works just fine for newly created user. I did some more testing but I didn't discover much. Firefox correctly loads langpack first time it is run for the user and keeps working until update providing new Firefox and langpack version. After that the profile seems to be fixed on that previous langpack version.
I can only guess that Firefox does cache that extension somewhere and that cache is not invalidated when new extension is available. I also guess it could be because timestamp on new extension file is same as previous one.
Thanks for the investigation. This would likely be better fixed in Firefox. Not sure what else we could do in Silverblue.
Well it probably could be also fixed in Firefox package. Firefox rpm already contains a bash script responsible for creating symlink for a langpack in home directory. This is done so new version of langpack is installed together with new version of firefox from package. This script could be upgraded to work around this issue in Silverblue (eg. copy file instead of symlink).
https://src.fedoraproject.org/rpms/firefox/blob/f39/f/firefox.sh.in#_214
It still may be a good idea to check with upstream if they have a good way to fix this. But from my point of view it is downstream feature that is broken.
Hum, interesting, this would indeed be a Fedora specific bug. But then the question becomes: why does this script not work on Silverblue?
Hum, interesting, this would indeed be a Fedora specific bug. But then the question becomes: why does this script not work on Silverblue?
Oh it does in a way. It creates symlink same as on Workstation. I have (not yet confirmed) theory that Firefox reloads metadata from extension only when file timestamp changes. And it does on Workstation when new version of rpm is installed. But on Silverblue that original file always has zero timestamp across deployments. So Firefox doesn't reload extension and believes in its own cached extension metadata that says that is an old one.
Hum, so there are multiple layers of caching here. 😕
I don't think there are multiple layer of cache. Until now I have noticed only one and that is extension metadata firefox does store in extensions.json
in profile dir.
That script from fedora RPM just makes sure there is prepared symlink in home dir pointing to current langpack installed from firefox-langpacks
anytime when Firefox is started.
It's probably best to submit a bug in bugzilla for the firefox package as the developers there should have more knowledge about how all of this works.
Yes, it's the timestamp what's checked during checking newer version. It's a downstream issue, I'll fix the launch script.
@xhorak How is it going? Can I do something to help?
@xhorak How is it going? Can I do something to help?
It should be fixed by upcoming firefox-122.0 release.
Thanks. I did check open PRs from time to time but I had to miss it. Also I should have checked commits, my bad. :D
And it seems to be already present in current build and working correctly. Thank you for fixing the issue.
Describe the bug Default Firefox installation refuses to use czech localization as it is of incompatible version. I assume there is incompatible version of langpack packed into
firefox-langpacks
package.It is possible this is Workstation issue, but currently I have no available system to test it on myself.I've tried to replicate this issue in freshly installed (and updated) Workstation in Boxes but it works as expected. So this seems to be Silverblue issue.To Reproduce Please describe the steps needed to reproduce the bug:
Expected behavior Firefox should be localized into Czech and show installed czech langpack in extension tab.
Screenshots
OS version:
Additional context