+ Post New Thread
Results 1 to 9 of 9
Windows Thread, Problem with mozilla.cfg file and getting settings to apply. in Technical; OK, I have followed a ton of advice and instructions to get a custom locked down config for FireFox 3.6.8. ...
  1. #1

    Join Date
    Apr 2009
    Location
    Chicago
    Posts
    7
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Problem with mozilla.cfg file and getting settings to apply.

    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);
    }



    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.

  2. #2


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,069
    Thank Post
    232
    Thanked 2,719 Times in 2,007 Posts
    Rep Power
    797
    Can you try the following?

    Code:
    //
    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);
    }

  3. Thanks to Arthur from:

    Jmariscal (16th August 2010)

  4. #3

    Join Date
    Apr 2009
    Location
    Chicago
    Posts
    7
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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:


  5. #4


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,069
    Thank Post
    232
    Thanked 2,719 Times in 2,007 Posts
    Rep Power
    797
    Quote Originally Posted by Jmariscal View Post
    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.

    Code:
    pref("general.config.obscure_value", 0);
    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.

  6. Thanks to Arthur from:

    Jmariscal (16th August 2010)

  7. #5


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,069
    Thank Post
    232
    Thanked 2,719 Times in 2,007 Posts
    Rep Power
    797
    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?

    Code:
    //
    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);
    }

  8. #6

    Join Date
    Apr 2009
    Location
    Chicago
    Posts
    7
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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

  9. #7

    Join Date
    Apr 2009
    Location
    Chicago
    Posts
    7
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    OK, It is working now. Thank you Arthur!
    Last edited by Jmariscal; 16th August 2010 at 08:55 PM.

  10. #8


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,069
    Thank Post
    232
    Thanked 2,719 Times in 2,007 Posts
    Rep Power
    797
    Glad to hear you got it working. What did you do differently?

  11. #9

    Join Date
    Apr 2009
    Location
    Chicago
    Posts
    7
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Since we are locked down, I am able to use the unencoded mozilla.cfg file. It seems the problem lied with the encoding.

SHARE:
+ Post New Thread

Similar Threads

  1. configure flash mms.cfg
    By ricki in forum Educational Software
    Replies: 7
    Last Post: 26th April 2010, 10:47 AM
  2. [PHP] PHP settings file - web based editing?
    By dgsmith in forum Web Development
    Replies: 1
    Last Post: 24th February 2010, 12:27 PM
  3. Replies: 7
    Last Post: 31st March 2009, 07:53 AM
  4. Mozilla Thunderbird - Network Settings?
    By Samson in forum Windows
    Replies: 3
    Last Post: 5th July 2007, 08:21 AM
  5. Replies: 8
    Last Post: 9th October 2006, 10:11 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •