Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Override settings of signed addons globally for all users

more options

Up to Firefox 45/46, I could unpack an XPI, modify settings, repack it, and then install it globally. Due to addons being signed now, this is not possible anymore. To do so, every user has to do the same settings themselves.

How can I modify settings for an addon for all users without starting each user's Firefox and doing it manually?

Up to Firefox 45/46, I could unpack an XPI, modify settings, repack it, and then install it globally. Due to addons being signed now, this is not possible anymore. To do so, every user has to do the same settings themselves. How can I modify settings for an addon for all users without starting each user's Firefox and doing it manually?

Alla svar (6)

more options

In Firefox 45, are you toggling this preference manually: xpinstall.signatures.required

What do you mean by globally? Globally on your system or globally throughout a company?

Firefox supports an "autoconfig" file to set preferences that apply to all profiles on a particular computer, and that should apply to all users on the system if they share the same program folder. You can read more about that here:

https://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/

more options
more options

jscher2000 said

In Firefox 45, are you toggling this preference manually: xpinstall.signatures.required

Yes, I know about "xpinstall.signatures.required", though this is not available starting from Firefox 46, AFAIK.

What do you mean by globally? Globally on your system or globally throughout a company?

I mean globally on my system. But if there's a way globally for a company, that should work for a single system too.

Firefox supports an "autoconfig" file to set preferences that apply to all profiles on a particular computer, and that should apply to all users on the system if they share the same program folder. You can read more about that here: https://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/

I read a bit about the "autoconfig" file and tested it, and it works, if I stomp over an addon's defaults/preferences settings with "pref()" or "lockPref()". But I cannot use something like "defaultPref()" to override settings from an addon, which is what I wanted.

In any case, thank you for your help.

more options

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

I still see xpinstall.signatures.required in the current Firefox 46 beta release, but I'm not sure if the release version will support this as well or that a special unbranded version is needed.

more options

cor-el said

See also Configuration:

This also just explains autoconfig, which doesn't allow defaultPref() for addon's settings.

Do you install this extension globally?

Yes, I've put this and other extensions in /usr/lib/firefox/browser/extensions, which in turn is a symbolic link to /usr/lib/firefox-addons/extensions. (Ubuntu)

more options

xpinstall.signatures.required will be removed according to Mozilla, maybe now, maybe later. In any case, I don't see a solution currently, and I would like to stay with the default package provided by my distribution.