Jump to content

Recommended Posts

Posted
There is some great information here. Thank you everyone. I am using mozilla.cfg and I am having a problem finding a setting to remove the checkbox for remember passwords for sites and to remove the checkbox to block popups. If anyone has information on this any help will be greatly appreciated.
Posted

There are several ways you could do this... :)

 

Option 1. Add the following two lines to your Mozilla.cfg. Set each one to True or False depending on whether you want to enable (check) or disable (uncheck) a preference.

 

lockPref("dom.disable_open_during_load", false);
lockPref("pref.privacy.disable_button.view_passwords", false);

 

http://i.imgur.com/evwbU.png

 

Option 2. Hide them completely by adding this to your userChrome.css.

 

#popupPolicyRow, #savePasswordsBox { display: none !important; }

 

http://i.imgur.com/gt30m.png

 

or

 

#passwordsGroup { display: none !important; }

 

...to hide the entire passwords section.

 

http://i.imgur.com/FXESi.png

 

If you would like to lock and/or hide other settings, install the DOM Inspector add-on and load either chrome://browser/content/browser.xul (for the main browser UI) or chrome://browser/content/preferences/preferences.xul (Options dialog box). By using the "Find a node to inspect" button you can find out which Id or Preference to use in your Mozilla.cfg/userChrome.css file.

 

http://i.imgur.com/XE2yv.png

Posted
Thank you so much Arthur. One last thing, I would like to stop the "know your rights" message from coming up. I put this in my mozilla.cfg file but it doesn't seem to work. lockpref("browser.rights.3.shown", false); I don't know if this is the right thing or not but when looking in about:config it looked like it would be. Thanks again.
Posted
One last thing, I would like to stop the "know your rights" message from coming up. I put this in my mozilla.cfg file but it doesn't seem to work. lockpref("browser.rights.3.shown", false);

False should be changed to True for that setting.

Posted
False should be changed to True for that setting.

 

Thank You so much Arthur, it looks like that worked. I don't know why I didn't think of just changing it to true.

Posted (edited)

I've deployed Firefox 4.0.1 into my school.

 

Apologies - I'm not up-to-date with this thread, but as I saw mention of Firefox 4, thought I'd explain what I've done. Someone might find this of benefit I suppose, but I can't go into too much depth.

 

Building a secure package took a bit of time to craft - may be some tips here for people...

 

Modify and deploy firefox using the setup.exe program which you can extract from the Firefox executable, I think using 7-zip from memory. You can run this setup program silently, so ideal for rolling out using a startup script.

 

Created a mozilla.cfg to lock various things down, set up Firefox and hard code the proxy into Firefox. This is byte shifted using the "Byte Shifter.exe" program, a free download. Generally, I found the mozilla.cfg from 3.6.x works okay in 4.0.1, but there were a couple of entries from memory that it fell foul of, and for the life of me I can't remember what they are - I think that it was the ordering of the "ui.key." preferences.

 

Using 7-zip, deleted the followling from the omni.jar file...

 

\chrome\browser\content\browser\bookmarks\

\chrome\browser\content\browser\history\

\chrome\browser\content\browser\migration\

\chrome\browser\content\browser\setDesktopBackground.js

\chrome\browser\content\browser\setDesktopBackground.xul

\chrome\browser\content\browser\engineManager.js

\chrome\browser\content\browser\engineManager.xul

 

On top of this, edited the following files with Notepad ++...

 

\chrome\browser\content\browser\browser.js

\chrome\browser\content\browser\browser.xul

 

Editing the two above files can really lock down your Firefox install. For instance, for some pupils, we present a "you are blocked" page when the pupil tries to access an unapproved https document. This is done using a couple of home brew functions in browser.js, called from within browser.js.

 

By knocking out lines from browser.xul, you can also disable some of the keypresses such as accessing the history, the side bar, bookmarks, etc. You might be able to do some of this with the userChrome.css file, but once it's removed from browser.xul, there's no way around it - the key press is removed from Firefox.

 

To edit these files, copy them out of the omni.jar file, edit them with notepad ++, and then put them back again into omni.jar using 7-zip.

 

I've set up a modified localstore.rdf file in the user profile to remove certain things, including the search bar. This presents a unified search and address bar.

 

If you use a unified bar, you need to use a WPAD.DAT file for your proxies, or at least we did, so anything which is not an fully qualified address can be set to a local "direct" rather than proxied connection. Then the local PC rather than the proxy does a DNS lookup on the search term, finds that it fails, and then treats it as a search term rather than a host name. We found that if the proxy is sent these requests, then the proxy will just display a "DNS failed" error on a web page, and so the search does not happen. I hope that that makes sense.

 

I deploy this in a startup script which deploys Firefox, then applies the customisations, sets as the default browser, and then updates the plug-ins such as Flash, Adobe Reader, JRE, etc.

 

I do use userChrome.css and userContent.css files for locking down the interface further too. In the logon script, if the user does not already have a firefox profile, one is set up in a "default" profile folder, with customisations copied in.

 

Looking at what is on the thread, it feels that what we have done is a bit of a hack, but as long as it works!

 

Get in touch if you want more info.

Edited by digone52

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...