Jmariscal Posted August 13, 2010 Posted August 13, 2010 OK, I have followed a ton of advice and instructions to get a custom locked down config for FireFox 3.6.8. I changed the all.js file successfully. However, most of the mozilla.cfg settings are applied, but are ignored. Please see the screenshot for an example. I am trying a very simple file to test: // try { lockPref("browser.startup.homepage", "http://newsletter.ttc.home/"); lockPref("Privacy.clearOnShutdown.cache", true); lockPref("Privacy.clearOnShutdown.history", true); } catch(e) { // displayError("lockedPref", e); } http://www.ttc-ms.com/test/images/privacysettings.jpg but as you can see from the screenshot, and in testing, it does not clear the history. The homepage works everytime though, even if I change it. An interesting observation, when I apply the new all.js file and the mozilla.cfg to a fresh install of FF, upon first launch, NONE of the settings are followed. Only AFTER you open and close it the first time does anything work.
Arthur Posted August 13, 2010 Posted August 13, 2010 Can you try the following? // try { lockPref("browser.startup.page", 1); lockPref("browser.startup.homepage", "http://newsletter.ttc.home/"); lockPref("privacy.sanitize.promptOnSanitize", false); lockPref("privacy.sanitize.sanitizeOnShutdown", true); // Always clear my private data when I close Firefox lockPref("privacy.sanitize.timeSpan", 0); // 0 = Clear everything lockPref("Privacy.clearOnShutdown.cache", true); lockPref("Privacy.clearOnShutdown.history", true); } catch(e) { // displayError("lockedPref", e); } 1
Jmariscal Posted August 13, 2010 Author Posted August 13, 2010 It is doing the same thing (only partially working). I am using Automatic Mozilla Configurator to convert the TXT to CFG. The line I added in the all.js is pref("general.config.filename", "mozilla.cfg"); New screenshot: http://www.ttc-ms.com/test/images/testsettings.jpg
Arthur Posted August 13, 2010 Posted August 13, 2010 The line I added in the all.js is pref("general.config.filename", "mozilla.cfg"); I usually add the following two lines to the end of my all.js so that I do not have to keep converting the mozilla.cfg file each time I update it. This makes troubleshooting issues a lot easier and our users are restricted so they can't modify this file anyway. I then copy my unencrypted mozilla.cfg file directly into the Mozilla Firefox folder within Program Files and it just works. [b]pref("general.config.obscure_value", 0);[/b] pref("general.config.filename", "mozilla.cfg"); This might be worth a try since it will help to eliminate any issues with the conversion of the mozilla.cfg file. 1
Arthur Posted August 13, 2010 Posted August 13, 2010 I just had another look at my mozilla.cfg file and noticed I do not have \\ before displayError. This might be worth removing too perhaps? // try { lockPref("browser.startup.page", 1); lockPref("browser.startup.homepage", "http://newsletter.ttc.home/"); lockPref("privacy.sanitize.promptOnSanitize", false); lockPref("privacy.sanitize.sanitizeOnShutdown", true); // Always clear my private data when I close Firefox lockPref("privacy.sanitize.timeSpan", 0); // 0 = Clear everything lockPref("Privacy.clearOnShutdown.cache", true); lockPref("Privacy.clearOnShutdown.history", true); } catch(e) { displayError("lockedPref", e); }
Jmariscal Posted August 16, 2010 Author Posted August 16, 2010 Thank you for your help on this, but it is still not working. I put your lines in pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); at the bottom of the all.js file, but now it wont see the mozilla.cfg AT ALL. When I took out the line pref("general.config.obscure_value", 0); I got it back to seeing the correct homepage, but no sanitize or other settings. What am I missing? BTW- This is being tested on 3.6.8
Jmariscal Posted August 16, 2010 Author Posted August 16, 2010 (edited) OK, It is working now. Thank you Arthur! Edited August 16, 2010 by Jmariscal
Arthur Posted August 17, 2010 Posted August 17, 2010 Glad to hear you got it working. What did you do differently?
Jmariscal Posted August 17, 2010 Author Posted August 17, 2010 Since we are locked down, I am able to use the unencoded mozilla.cfg file. It seems the problem lied with the encoding.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now