/build/static/layout/Breadcrumb_cap_w.png

Disabling add-ons in Firefox 4.0.1

I'm trying to create a package for Firefox 4.0.1 in which I need to disable the installation and use of any add-ons if this is possible.
I know you can disable add-ons in safe mode but I can't find anywhere in the config files where I can completely disable them, because even after disabling in safe mode you can re-enable using Tools > Add-ons.

I've thought about removing the Add-ons menu in Tools, but can't figure out how to. I can remove the Tools menu by placing a text file called userChrome.css to the profile path with the following inside:

#tools-menu { display: none !important; }

Anyone out there know how to manipulate this to include the Tools menu, but exclude the Add-ons menu item?

Even better, anyone know how to disable the use of add-ons completely through config files?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 12 years ago
Red Belt
2
Have you read the 'Package KB' Notes section? IIRC, most of what works in v3.x still works for v4.x.
Posted by: dodgy 12 years ago
Orange Belt
2
Have a search for Firefox and locked preference files, a good link to start with is http://kb.mozillazine.org/Locking_preferences. Once you understand the basics the preference you want to set is:

lockPref("xpinstall.enabled", false);

I've packaged / customised firefox since 2.x for a very locked down setup, if you have any questions post back and i may be able to help.

As you noted you have to hide the option via the userChrome.css file.
Posted by: Gut 12 years ago
Yellow Belt
0
Thanks a lot VBScab. Sorry I'm new here and didn't look around enough before posting as I was trying to get out of the office yesterday afternoon. Thanks for the reply and I'm having a look through there but it doesn't seem anyone on here or anything I can find through google can tell me how to do this. I'll keep trying and let you guys know if I figure it out.

I'm talking with some support guys now so hopefully we'll be able to get all add-ons disabled.
Posted by: Gut 12 years ago
Yellow Belt
0
DODGY! You have solved my issue!! Thanks so much, I'd tried disabling the xpinstall.enabled option through about:config however it did nothing. But now that you've told me to use lockpref it's working a treat. You've just saved me a lot of trouble my friend, I owe you!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ