mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3611] firefox: --private-home= disables add-ons #2268
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SuperSentient on GitHub (Aug 29, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3611
Write clear, concise and in textual form.
Bug and expected behavior When using Private Home Firejail disables Firefox add-ons.
No profile or disabling firejail Everything launches normally.
firejail --noprofile PROGRAMin a shell?whereis PROGRAM,firejail --list,stat $programpath)?Reproduce
Steps to reproduce the behavior:
firejail PROGRAMrun firejail --private-home=.mozilla firefoxERRORI'm not sure if this an error message but when I run firejail --private-home=.mozilla firefox in the terminal this what I get (firefox:15): LIBDBUSMENU-GLIB-WARNING **: 09:37:01.887: Unable to get session bus: Could not connect: No such file or directoryEnvironment
lsb_release -a) Doesn't seem to matter I tried both Kubuntu 18.04 and Linux Mint 19.firejail --version) exclusive or used git commit (git rev-parse HEAD) Both version 0.9.62_1 and version 0.9.62.4_1Additional context
Other context about the problem like related errors to understand the problem.
Checklist
find / -name 'firejail' 2>/dev/null/fd firejailto locate profiles ie in/usr/local/etc/firejail/PROGRAM.profile)debug output
@SkewedZeppelin commented on GitHub (Aug 29, 2020):
This could potentially be related to recent changes to extensions.enabledScopes and extensions.autoDisableScopes in the past few versions.
@SuperSentient commented on GitHub (Aug 29, 2020):
So I wonder when a fix for it will be made? Because I hate having manually re-enable all of my add-ons every time I use Private Home for Firefox.
@rusty-snake commented on GitHub (Aug 30, 2020):
@SuperSentient to test @SkewedZeppelin guess, open prefs.js in your firefox-profile and add
user_pref("extensions.autoDisableScopes", 0);+user_pref("extensions.enabledScopes", 15);. If these prefs already exist in your prefs.js remove the old once, but remember its value (NOTE: comments in prefs.js are removed by firefox).@SuperSentient commented on GitHub (Aug 30, 2020):
I have no idea how to do that I tried looking for it under about:config couldn't find it.
@rusty-snake commented on GitHub (Aug 30, 2020):
Options:
about:profileswhere your profile is (e.g.~/.mozilla/firefox/quux.qaax), then open the file prefs.js in it with an editor while firefox is not running (e.g.vim~/.mozilla/firefox/quux.qaax/prefs.js)@SuperSentient commented on GitHub (Aug 30, 2020):
Oh sheesh this sounds way to complicated for me I mean my hacking skills are limited, but regardless thanks for your help.
Hopefully netblue30 will be able fix this in a future update.
@bbhtt commented on GitHub (Aug 31, 2020):
Neither help. This is a firefox only problem I think. I tested chrome and midori both work fine with extensions and private-home, tried seamonkey...it doesn't have a extension toolbar, so I couldn't find a way to check if they are actually enabled.
One of them exist in about:config https://imgur.com/0ZteNEu, firefox 80.0...
An easy workaround exists for private-home: click on the extensions a few times...
@SuperSentient commented on GitHub (Sep 4, 2020):
Alright I guess I'll try modifying Firefox in a VM and see if that will help with this issue, but I'll need guidance since my hacking skills are limited and may take me while to get back a hold of you all. But I'll keep doing what I've doing for the time being and that's re-enabling my add-ons every time I use Private Home for Firefox. But I curious does happen with other browsers based of Firefox such as Waterfox or even Pale Moon?
@SkewedZeppelin commented on GitHub (Sep 4, 2020):
@SuperSentient
Those prefs are hidden, just fiddle around with them in about:config.
This is due to recent security changes in the past few versions of Firefox.
@SuperSentient commented on GitHub (Sep 10, 2020):
So how do I find them in about:config if there hidden?
Also when I updated my Firefox browser I opened it in Private Home and the add-ons didn't disable but after I rebooted my system it started disabling my add-ons again in Private Home, so I'm guessing that Netblue30 might able to fix it on the Firejail end.
@rusty-snake commented on GitHub (Sep 11, 2020):
Enter the full pref and create a new of type "number".
@rusty-snake commented on GitHub (Sep 13, 2020):
It still happens with these prefs.
about:addons and about:support say that my add-ons are enabled, about:performance does not show any active add-ons and about:debugging just show me a
TypeError: target is nullif I try to debug one of the "enabled" add-ons.@mq2yy9t33 commented on GitHub (Sep 14, 2020):
i had the same on arch.
user_pref("extensions.lastAppBuildId", "2020xxxxxxxxxx");seems to cause it.changing this date/time value e.g. to 2020xxxxxxxxxY makes the icons remain visible.
about:performance shows all extensions active.
OP's command
firejail --private-home=.mozilla firefoxworks in the terminal without error.rebooted, checked, still works.
so i would like to call for testing if this works 4 u 2...
@SuperSentient commented on GitHub (Sep 15, 2020):
That's funny I don't remember saying that it works in the terminal in fact I just tried that and my add-ons are still disabling. Either way I would like to some sort of fix for this issue.
@mq2yy9t33 commented on GitHub (Sep 16, 2020):
I can't do anything with your answer. i'm talking of Firefox 80.0.1 on archlinux,
firejail --private-home=/home/USER/.mozilla firefox, missing icons and deactivated extensions.any value in
user_pref("extensions.lastAppBuildId", "VALUE");that differs from the original works.did you try to leave it blank or "20200901112233"? did you try something unreal like "20200901555555" or characters
like "abcdefghijklmn"?
i think this issue has nothing to do with firejail. fetch a pref.js of a working FF from a forum user and run FF with this different
file. if FF works properly then compare and copy settings partially to narrow down the pref.js entries. that's what i did.
@dpellegr commented on GitHub (Oct 15, 2020):
I was having this issue on FFox 81, Archlinux.
firejail --private-home=/home/USER/.mozilla firefoxThe theme is kept, but the extensions behave weirdly:
Following the suggestion of @mq2yy9t33 I edited the profile file (
~/.mozilla/firefox/your_profile_folder/prefs.js) settingextensions.lastAppBuildIdto blank and it has solved the issue.Keep in mind that if you open FF without firejail, it will revert
extensions.lastAppBuildIdto the original value, breaking all the new firejailed instances.All the above applies to FF82 as well.