[GH-ISSUE #3611] firefox: --private-home= disables add-ons #2268

Open
opened 2026-05-05 08:57:41 -06:00 by gitea-mirror · 16 comments
Owner

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.

  • Describe the bug. Whenever I launch Firefox 80 in the Private Home profile it disables the add-ons three to four seconds after launching Firefox in Private Home
  • What did you expect to happen? For Firefox to launch with add-ons enabled.

No profile or disabling firejail Everything launches normally.

  • What changed calling firejail --noprofile PROGRAM in a shell?
  • What changed calling the program by path=without firejail (check whereis PROGRAM, firejail --list, stat $programpath)?

Reproduce
Steps to reproduce the behavior:

  1. Run in bash firejail PROGRAM run firejail --private-home=.mozilla firefox
  2. See error ERROR I'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 directory
  3. Click on '....'
  4. Scroll down to '....'

Environment

  • Linux distribution and version (ie output of lsb_release -a) Doesn't seem to matter I tried both Kubuntu 18.04 and Linux Mint 19.
  • Firejail version (output of firejail --version) exclusive or used git commit (git rev-parse HEAD) Both version 0.9.62_1 and version 0.9.62.4_1
  • What other programs interact with the affected program for the functionality? Just Firefox as far as I can tell.
  • Are these listed in the profile?

Additional context
Other context about the problem like related errors to understand the problem.

Checklist

  • The upstream profile (and redirect profile if exists) have no changes fixing it.
  • The upstream profile exists (find / -name 'firejail' 2>/dev/null/fd firejail to locate profiles ie in /usr/local/etc/firejail/PROGRAM.profile)
  • Programs needed for interaction are listed.
  • Error was checked in search engine and on issue list without success.
debug output
OUTPUT OF `firejail --debug PROGRAM`
When ever I this command firejail --private-home=.mozilla firefox it disables the add-ons in Firefox I have to re-enable manually the strange thing is the add-ons show them as being enabled under add-ons they don't show up in the toolbar and I know there actually disabled because if go to site like YouTube it shows ads and that means my Ublock Origin disabled.
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. - Describe the bug. Whenever I launch Firefox 80 in the Private Home profile it disables the add-ons three to four seconds after launching Firefox in Private Home - What did you expect to happen? For Firefox to launch with add-ons enabled. **No profile or disabling firejail** Everything launches normally. - What changed calling `firejail --noprofile PROGRAM` in a shell? - What changed calling the program *by path*=without firejail (check `whereis PROGRAM`, `firejail --list`, `stat $programpath`)? **Reproduce** Steps to reproduce the behavior: 1. Run in bash `firejail PROGRAM` run firejail --private-home=.mozilla firefox 2. See error `ERROR` I'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 directory 3. Click on '....' 4. Scroll down to '....' **Environment** - Linux distribution and version (ie output of `lsb_release -a`) Doesn't seem to matter I tried both Kubuntu 18.04 and Linux Mint 19. - Firejail version (output of `firejail --version`) exclusive or used git commit (`git rev-parse HEAD`) Both version 0.9.62_1 and version 0.9.62.4_1 - What other programs interact with the affected program for the functionality? Just Firefox as far as I can tell. - Are these listed in the profile? **Additional context** Other context about the problem like related errors to understand the problem. **Checklist** - [ ] The upstream profile (and redirect profile if exists) have no changes fixing it. - [ ] The upstream profile exists (`find / -name 'firejail' 2>/dev/null`/`fd firejail` to locate profiles ie in `/usr/local/etc/firejail/PROGRAM.profile`) - [ ] Programs needed for interaction are listed. - [ ] Error was checked in search engine and on issue list without success. <details><summary> debug output </summary> ``` OUTPUT OF `firejail --debug PROGRAM` ``` </details> When ever I this command firejail --private-home=.mozilla firefox it disables the add-ons in Firefox I have to re-enable manually the strange thing is the add-ons show them as being enabled under add-ons they don't show up in the toolbar and I know there actually disabled because if go to site like YouTube it shows ads and that means my Ublock Origin disabled.
Author
Owner

@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.

<!-- gh-comment-id:683331291 --> @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.
Author
Owner

@SuperSentient 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.

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.

<!-- gh-comment-id:683342440 --> @SuperSentient 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. 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.
Author
Owner

@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).

<!-- gh-comment-id:683396074 --> @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).
Author
Owner

@SuperSentient 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).

I have no idea how to do that I tried looking for it under about:config couldn't find it.

<!-- gh-comment-id:683434410 --> @SuperSentient 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). I have no idea how to do that I tried looking for it under about:config couldn't find it.
Author
Owner

@rusty-snake commented on GitHub (Aug 30, 2020):

Options:

  1. See about:profiles where 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)
  2. Start firefox w/o private-home (it is still a whitelisting profile) and set these on about:config, you maybe need to create these settings.
<!-- gh-comment-id:683438241 --> @rusty-snake commented on GitHub (Aug 30, 2020): Options: 1. See `about:profiles` where 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`) 2. Start firefox w/o private-home (it is still a whitelisting profile) and set these on about:config, you maybe need to create these settings.
Author
Owner

@SuperSentient commented on GitHub (Aug 30, 2020):

Options:

1. See `about:profiles` where 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`)

2. Start firefox w/o private-home (it is still a whitelisting profile) and set these on about:config, you maybe need to create these settings.

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.

<!-- gh-comment-id:683451126 --> @SuperSentient commented on GitHub (Aug 30, 2020): > Options: > > 1. See `about:profiles` where 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`) > > 2. Start firefox w/o private-home (it is still a whitelisting profile) and set these on about:config, you maybe need to create these settings. 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.
Author
Owner

@bbhtt commented on GitHub (Aug 31, 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).

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.

I have no idea how to do that I tried looking for it under about:config couldn't find it.

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...

it disables the add-ons in Firefox I have to re-enable manually

<!-- gh-comment-id:683542148 --> @bbhtt commented on GitHub (Aug 31, 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). 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. > I have no idea how to do that I tried looking for it under about:config couldn't find it. 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... > it disables the add-ons in Firefox I have to re-enable manually
Author
Owner

@SuperSentient commented on GitHub (Sep 4, 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).

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.

I have no idea how to do that I tried looking for it under about:config couldn't find it.

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...

it disables the add-ons in Firefox I have to re-enable manually

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?

<!-- gh-comment-id:687403713 --> @SuperSentient commented on GitHub (Sep 4, 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). > > 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. > > > I have no idea how to do that I tried looking for it under about:config couldn't find it. > > 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... > > > it disables the add-ons in Firefox I have to re-enable manually 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?
Author
Owner

@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.

<!-- gh-comment-id:687437008 --> @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.
Author
Owner

@SuperSentient commented on GitHub (Sep 10, 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.

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.

<!-- gh-comment-id:690678147 --> @SuperSentient commented on GitHub (Sep 10, 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. 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.
Author
Owner

@rusty-snake commented on GitHub (Sep 11, 2020):

So how do I find them in about:config if there hidden?

Enter the full pref and create a new of type "number".

<!-- gh-comment-id:691000595 --> @rusty-snake commented on GitHub (Sep 11, 2020): > So how do I find them in about:config if there hidden? Enter the full pref and create a new of type "number".
Author
Owner

@rusty-snake commented on GitHub (Sep 13, 2020):

user_pref("extensions.autoDisableScopes", 0);
user_pref("extensions.enabledScopes", 15);

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 null if I try to debug one of the "enabled" add-ons.

<!-- gh-comment-id:691679517 --> @rusty-snake commented on GitHub (Sep 13, 2020): ```javascript user_pref("extensions.autoDisableScopes", 0); user_pref("extensions.enabledScopes", 15); ``` 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 null` if I try to debug one of the "enabled" add-ons.
Author
Owner

@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 firefox works in the terminal without error.
rebooted, checked, still works.

so i would like to call for testing if this works 4 u 2...

<!-- gh-comment-id:692177850 --> @mq2yy9t33 commented on GitHub (Sep 14, 2020): i had the same on arch. <code>user_pref("extensions.lastAppBuildId", "2020xxxxxxxxxx");</code> seems to cause it. changing this date/time value e.g. to 2020xxxxxxxxx<b>Y</b> makes the icons remain visible. about:performance shows all extensions active. OP's command <code>firejail --private-home=.mozilla firefox</code> works in the terminal without error. rebooted, checked, still works. so i would like to call for testing if this works 4 u 2...
Author
Owner

@SuperSentient commented on GitHub (Sep 15, 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 firefox works in the terminal without error.
rebooted, checked, still works.

so i would like to call for testing if this works 4 u 2...

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.

<!-- gh-comment-id:692866645 --> @SuperSentient commented on GitHub (Sep 15, 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 firefox` works in the terminal without error. > rebooted, checked, still works. > > so i would like to call for testing if this works 4 u 2... 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.
Author
Owner

@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.

<!-- gh-comment-id:693447673 --> @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, <code>firejail --private-home=/home/<i>USER</i>/.mozilla firefox</code>, missing icons and deactivated extensions. any value in <code>user_pref("extensions.lastAppBuildId", "<i>VALUE</i>");</code> 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.
Author
Owner

@dpellegr commented on GitHub (Oct 15, 2020):

I was having this issue on FFox 81, Archlinux.

firejail --private-home=/home/USER/.mozilla firefox

The theme is kept, but the extensions behave weirdly:

  • Their icons are initially shown, but they disappear few second after the FFox window is drawn.
  • In the Add-ons menu they are reported active, although they are not.
  • After disabling and re-enabling them, they do work.

Following the suggestion of @mq2yy9t33 I edited the profile file (~/.mozilla/firefox/your_profile_folder/prefs.js) setting extensions.lastAppBuildId to blank and it has solved the issue.

Keep in mind that if you open FF without firejail, it will revert extensions.lastAppBuildId to the original value, breaking all the new firejailed instances.

All the above applies to FF82 as well.

<!-- gh-comment-id:709585120 --> @dpellegr commented on GitHub (Oct 15, 2020): I was having this issue on FFox 81, Archlinux. `firejail --private-home=/home/USER/.mozilla firefox` The theme is kept, but the extensions behave weirdly: * Their icons are initially shown, but they disappear few second after the FFox window is drawn. * In the Add-ons menu they are reported active, although they are not. * After disabling and re-enabling them, they do work. Following the suggestion of @mq2yy9t33 I edited the profile file (`~/.mozilla/firefox/your_profile_folder/prefs.js`) setting `extensions.lastAppBuildId` to blank and it has solved the issue. Keep in mind that if you open FF without firejail, it will revert `extensions.lastAppBuildId` to the original value, breaking all the new firejailed instances. All the above applies to FF82 as well.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2268
No description provided.