Mozilla.cfg not applied in Firefox 4

I'm trying to get some settings configured and locked using mozilla.cfg. We used this exact method in Firefox 3.x, but for some reason it's ignorant mozilla.cfg.

Here's my mozilla.cfg

//
try {
lockPref("app.update.enabled", false);
lockPref("app.update.autoUpdateEnabled", false);
lockPref("extensions.update.enabled", true);
lockPref("extensions.update.autoUpdateEnabled", true);
lockPref("network.automatic-ntlm-auth.trusted-uris", "shpt1-ed1, sharepoint");
lockPref("network.cookie.alwaysAcceptSessionCookies", true);
lockPref("network.cookie.cookieBehavior", 1);
} catch(e) {
displayError("lockedPref", e);
}

and the appropriate lines all.js

pref("general.config.obscure_value", 0); // for MCD .cfg files
pref("general.config.filename", "mozilla.cfg");

You can place a js file (local - settings.js) in the folder defaults\pref in the Firefox program folder. Firefox 4 is no longer uses all.js, but packs all the files in one archive special compressed omni.jar (optimized) and it is best not to edit this file.

See http://kb.mozillazine.org/Locking_preferences

Tags: Firefox

Similar Questions

  • What happened to mozilla.cfg?

    The last SMS package that I created for Firefox was 6.0.2, so my apologies if this is old news. What I understand replaced user.js mozilla.cfg? What lockpref, is an equivalence? I'm also a bit puzzled as to how we're supposed to use "browser.startup.homepage_override.mstone" or "browser.shell.checkDefaultBrowser" in user.js when the location there assume that it does not exist until the application is run. Am I missing something?

    See also:

    Use a mozilla.cfg file in the Firefox program folder to lock the prefs or specify default values.

    Place a local file - settings.js in the defaults\pref folder where you will also find the channel - prefs.js to specify using mozilla.cfg file.

    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    

    You can use these functions in mozilla.cfg:

    defaultPref();  // set new default value
    pref();         // set pref, but allow changes in current session
    lockPref();     // lock pref, disallow changes
    
  • Configuration of Firefox to Citrix using Mozilla.cfg

    We will publish Firefox via Citrix that works properly. We want to define a few parameters that are locked and some that are defined as initial preferences. When you create the mozilla.cfg with minimal settings that are locked, everything works fine. When you use additional parameters that are not locked, we get the error "unable to read the configuration file. We have tried to remove some of the settings to do is as simple as possible and still get the message.

    Cfg to work

    # Mozilla Global Preferences
    
    /* This file is to set and lock default preferences.
     *
     * Locate the settings in the prefs.js you want to make global and
     * copy them here. To lock the setting change the user_Pref to
     * lockPref.
     */
    
    //
    
    lockPref("browser.startup.homepage", "http://intranet.domain.com");
    lockPref("network.automatic-ntlm-auth.trusted-uris", "proxy,domain");
    lockPref("network.negotiate-auth.delegation-uris", "proxy");
    lockPref("network.negotiate-auth.trusted-uris", "proxy");
    

    Desired cfg

    # Mozilla Global Preferences
    
    /* This file is to set and lock default preferences.
     *
     * Locate the settings in the prefs.js you want to make global and
     * copy them here. To lock the setting change the user_Pref to
     * lockPref.
     */
    
    //
    
    user_Pref("accessibility.typeaheadfind.flashBar", 0);
    lockPref("app.update.auto", false); //disable automatic update
    lockPref("app.update.enabled", false); //disable updating Firefox
    lockPref("browser.bookmarks.restore_default_bookmarks", false);
    user_Pref("browser.cache.disk.capacity", 1048576);
    user_Pref("browser.cache.disk.smart_size.first_run", false);
    user_Pref("browser.cache.disk.smart_size_cached_value", 1048576);
    user_Pref("browser.download.useDownloadDir", false);
    lockPref("browser.feeds.showFirstRunUI", false); //disable initial RSS intro
    lockPref("browser.fullscreen.autohide", false); //always show URL and tab bar
    lockPref("browser.history_expire_days", 30); //clear history after 30 days
    lockPref("browser.history_expire_days_min", 30); //minimum 30 days to keep history
    user_Pref("browser.places.importBookmarksHTML", false);
    user_Pref("browser.places.importDefaults", false);
    lockPref("browser.rights.3.shown", true);
    user_Pref("browser.search.suggest.enabled", true); //disable search suggestions
    lockPref("browser.shell.checkDefaultBrowser", false); //disable default browser check
    user_Pref("browser.startup.page", 1);
    lockPref("browser.startup.homepage", "http://intranet.domain.com");
    user_Pref("browser.tabs.autoHide", false); //always show tab bar
    user_Pref("browser.tabs.insertRelatedAfterCurrent", false); //load new tabs last
    user_Pref("browser.tabs.loadBookmarksInBackground", true); //new tabs in backg.
    user_Pref("browser.tabs.warnOnOpen", false); //don't warn on opening mult. tabs
    lockPref("browser.taskbar.previews.enable", true);
    user_Pref("browser.urlbar.autoFill", true); //enable URL autocomplete
    lockPref("general.smoothScroll", true);
    lockPref("general.warnOnAboutConfig", true); //display warning prompt
    user_Pref("mozilla.widget.raise-on-setfocus"); //disable focus stealing
    user_Pref("mozilla.widget.raise-on-setfocus", false); //don't focus new tabs
    lockPref("network.automatic-ntlm-auth.trusted-uris", "proxy,domain");
    lockPref("network.cookie.lifetimePolicy", 2);
    lockPref("network.cookie.prefsMigrated", true);
    lockPref("network.negotiate-auth.delegation-uris", "proxy");
    lockPref("network.negotiate-auth.trusted-uris", "proxy");
    user_Pref("network.http.max-connections-per-server", 32);
    user_Pref("network.http.pipelining", true); //enable HTTP pipelining
    user_Pref("network.http.pipelining.maxrequests", 7);
    user_Pref("network.http.pipelining.ssl", true); //always enable HTTPS pipelining
    user_Pref("network.http.proxy.pipelining", true); //enable HTTP pipelining
    lockPref("network.proxy.type", 4);
    user_Pref("privacy.donottrackheader.enabled", true);
    lockPref("privacy.item.formdata", true); //clear saved form data
    lockPref("privacy.item.offlineApps", true); //clear offline apps data
    user_Pref("privacy.sanitize.migrateFx3Prefs", true);
    user_Pref("security.warn_viewing_mixed", true);
    user_Pref("security.warn_entering_secure", false);
    user_Pref("security.warn_leaving_secure", true);
    user_Pref("security.warn_submit_insecure", true);
    lockPref("signon.rememberSignons", false);
    lockPref("toolkit.telemetry.prompted", false);
    user_Pref("view_source.wrap_long_lines", true); //enable line wrapping
    

    The defaultPref() function applies if it is not a user setting (it changes only the current default value), but has no effect if the user has already changed the default value.
    Pref function is always issued if you start a new session, but the user can replace for this single session and changes are lost.
    Prefs that are locked through lockPref() can not be changed at all.

  • entries in mozilla.cfg do not populate in firefoix (version 41)

    Attempt to lock some settings in Firefox 41.0, which must be deployed to about 100 machines
    I have a file Local - settings.js in the Default\Pref folder that has the following text:
    Pref ("general.config.filename", "mozilla.cfg");

    And the file mozilla.cfg corresponding to the Mozilla Firefox folder (with firefox.exe) has the following entries:
    //
    lockPref ("network.automatic - ntlm - auth.trusted - URIS","http://support.seddons.co.uk" ");
    lockPref ("network.proxy.autoconfig_url","http://spsukman01.sedsol.net/seddons.pac" ");

    When I run Firefox and go to about: config these entries have not been met. I can manually update the entries of subject: config and they do the job, but I need to do this for multiple machines, so if this isn't the best method if I understand that the route of the GPO is not reliable.
    Thank you very much
    BH

    Do any other entries in the file mozilla.cfg work?

    Put a local file - settings.js in the folder defaults\pref also the file prefs.js - channel where to specify using mozilla.cfg.
    Try this content in the file:

    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0);
    
  • I get the message "this search engine is not supported by Firefox and cannot be installed" whenever I try to install a plugin to search on the Mozilla Add-ons site. Why?

    Any search plugin I chose to install it from the list of search plugins FireFox on the Mozilla Add-ons site, I get the same error message - "this search engine is not supported by FireFox and can not be installed. I tried to delete the 3 files in my profile identified in the article on troubleshooting plugins, but it did not help. I am running Firefox with administrator privileges, but it does not help. The problem seems to be with the search plugins. I can install other extensions that are not plugins from the Mozilla Add-ons site search, but not the search plugins. I tried restarting FireFox and restarting the computer severaltimes, but I get the same error message when I try to install a search plugin.

    Something is messed up on the pages of plugins MySapce AMO. Clear the URL bar and type something here (but do not hit Enter) - then you should be able to proceed with the installation of a search plugin.

  • How to mozilla.cfg, override.ini, all - companyname.js, work once and for all for all users files

    I'm trying to apply a patch for the browser firefox (version 23.0.1) on more than 250 computers. Setting default Web pages, disable the annoying guests as the default browser and import bookmarks and deleting history on shutdown or startup. It is very easily done editing the pref.js file, but I will not change this file, it is out of the question. Another update of FF will erase or overwrite all my changes.

    I run a computer lab at the University which is locked with a Net Support School console. You don't need to find out who. Virtually all Web sites are limited except those ones I list white. The Web sites we use have an extensive API for JS, CSS, Java, PHP, etc... We use technology so that students use calculators graphics, video, and the module test socket of the Whitelist, as Pearson or Aleks sites. Now, with that said, cookies and stored profile history become a problem, and on up to day 25% of students using computers need history deleted for a loading page. I think I solved this problem permanently by whitelist backend sites import plugins and API etc, I found the console developers. No matter what. What I learned from all this, is that Firefox can be very customizable, using the '...\Mozilla Firefox\mozilla.cfg' and '...\Mozilla Firefox\defaults\prefs\all-companyname.js' (or custom.js) the problem is little matter what I try I can't seem to work. Was the closest I have got here:

    http://www.intrntpirate.com/?p=615

    Here again, even that ^^ did not work. I followed these instructions to a "T". What is the problem with the explanations above in the link? Why firefox doing harder and harder for us to optimize it for massive deployments through a company and a University? I won't do any fancy hacks to avoid the main problem. I need mozilla.cfg and all - companyname.js and override.ini files to work, if and only if they are still topical.

    Here's what my files look like so far:

    name: all - lmc.js

    location: C:\Program Files (x 86) \Mozilla Firefox\defaults\pref\

    Pref ("general.config.filename", "mozilla.cfg");

    Pref ("browser.startup.homepage", "https://(some url)");

    name: override.ini

    location: C:\Program Files (x 86) \Mozilla Firefox\

    [XRE]

    EnableProfileMigrator = false



    name: mozilla.cfg

    location: C:\Program Files (x 86) \Mozilla Firefox\

    //

    lockPref ("privacy.sanitize.sanitizeOnShutdown", true);

    lockPref ("privacy.sanitize.promptOnSanitize", false);

    lockPref ("browser.shell.checkDefaultBrowser", false);

    lockPref ("toolkit.telemetry.enabled", false);

    lockPref ("toolkit.telemetry.prompted", 2);

    lockPref ("toolkit.telemetry.rejected", true);

    I tried using it or not, the Configurator automatic mozilla. I tried to change lockPref pref. Nothing works. Not the override.ini, not at all - lmc.js and not the mozilla.cfg. I lost hours of reading through the blogs of experts telling us to change files that do not exist, or beat around the Bush. I did the search. If you have the answer, or you want to help me understand this just remember to keep it simple. Please, I beg you. In the end, I want to pack all the config files, with one how, in a zip on our shared drive folder. To have FF on measure and ready to deploy on different services on the campus.

    Error console warnings are OK.

    The general.config.obscure_value pref is set to the default of 0?

    You can try to save these versions of the files (open in a Firefox tab and save via Save Page As)

    I don't know if all these prefs are still supported in the current version of Firefox.

    local - settings.js

    data:text/plain;charset=utf-8;base64,cHJlZigiZ2VuZXJhbC5jb25maWcuZmlsZW5hbWUiLCAibW96aWxsYS5jZmciKTsKcHJlZigiZ2VuZXJhbC5jb25maWcub2JzY3VyZV92YWx1ZSIsIDApOwo=
    

    Mozilla.cfg

    data:text/plain;charset=utf-8;base64,Ly8KcHJlZigicHJpdmFjeS5zYW5pdGl6ZS5zYW5pdGl6ZU9uU2h1dGRvd24iLCB0cnVlKTsKcHJlZigicHJpdmFjeS5zYW5pdGl6ZS5wcm9tcHRPblNhbml0aXplIiwgZmFsc2UpOwpwcmVmKCJicm93c2VyLnJpZ2h0cy5vdmVycmlkZSIsIHRydWUpOwpwcmVmKCJhcHAudXBkYXRlLmF1dG8iLCBmYWxzZSk7CnByZWYoImV4dGVuc2lvbnMuYmxvY2tsaXN0LmVuYWJsZWQiLCBmYWxzZSk7CnByZWYoImV4dGVuc2lvbnMuc2hvd25TZWxlY3Rpb25VSSIsIHRydWUpOwpwcmVmKCJicm93c2VyLnNoZWxsLmNoZWNrRGVmYXVsdEJyb3dzZXIiLCBmYWxzZSk7CnByZWYoInRvb2xraXQudGVsZW1ldHJ5LmVuYWJsZWQiLCBmYWxzZSk7CnByZWYoInRvb2xraXQudGVsZW1ldHJ5LnByb21wdGVkIiwgMik7CnByZWYoInRvb2xraXQudGVsZW1ldHJ5LnJlamVjdGVkIiwgdHJ1ZSk7CnByZWYoImFwcC51cGRhdGUuYXV0byIsIGZhbHNlKTsKcHJlZigiYnJvd3Nlci5kb3dubG9hZC51c2VEb3dubG9hZERpciIsIHRydWUpOwpwcmVmKCJicm93c2VyLnNlYXJjaC51cGRhdGUiLCBmYWxzZSk7CnByZWYoInNpZ25vbi5hdXRvZmlsbEZvcm1zIiwgZmFsc2UpOwpwcmVmKCJzaWdub24ucmVtZW1iZXJTaWdub25zIiwgZmFsc2UpOwpwcmVmKCJicm93c2VyLmRvd25sb2FkLm1hbmFnZXIuc2NhbldoZW5Eb25lIiwgdHJ1ZSk7CnByZWYoImJyb3dzZXIuZm9ybWZpbGwuZW5hYmxlIiwgZmFsc2UpOwpwcmVmKCJ4cGluc3RhbGwuZW5hYmxlZCIsIHRydWUpOwo=
  • How can I get the seeds a server certificate or a certificate using mozilla.cfg exception

    I work with mozilla.cfg and I would create a security certificate exception. I have the following functional

    UNIQUE Set authentication settings
    Pref ("network.automatic - ntlm - auth.trusted - URIS","fake.com" ");
    Pref ("network.negotiate - auth.trusted - URIS","sso.fake.com" ");
    Pref ("network.negotiate - auth.delegation - URI","sso.fake.com" ");
    Pref ("network.automatic - ntlm - auth.allow - no - name FQDN", "true");

    Whitelist domain Set
    Pref ("browser.fixup.domainwhitelist.fakecorp.com", "true");
    Pref ("browser.fixup.domainwhitelist.fakeassociate.com", "true");
    Pref ("browser.fixup.domainwhitelist.fake.com", "true");

    However, there is a server jump during the UNIQUE authentication process which is forcing me to make an exception of the certificate security.

    Bottom line, I'm looking for a way to preconfigure this exception using the mozilla.cfg method

    Details of the environment:
    Enterprise Active Directory offering the 'autoconfig.js' & 'mozilla.cfg.
    mainly of Windows 7
    Firefox 38.01 & 38.05

    I'm not aware of a way to manage the certificate via mozilla.cfg exception.

    Normally, you use the certutil application.

  • Custom Mozilla.cfg of the file no longer works after upgrade to v38.01

    I created a custom mozilla.cfg file which contains three main sections.
    First section locks several preferences.
    The second section modifies the chrome - cache the Orange button and add the menu bar.
    Section three adds a folder of bookmarks and links specific to our Organization.

    I also modified the local file - settings.js so that it points to my cfg file:
    Pref ("general.config.filename", "mozilla.cfg");
    Pref ("general.config.obscure_value", 0); This allows to deactivate the byte-shift

    After the v38.01, Firefox opens. He appears briefly in the Task Manager and goes. I started some tests and found that, if I comment out the line "pref ("general.config.obscure_value", 0);" in the local file - settings.js, FF opens but none of the settings I've specified are applied.
    I'm stuck because I have no idea what could be the problem. The allowed syntax has changed? The structure of the files has changed?
    I can post the cfg file if necessary.

    Thank you.

    Yes. This feature has disappeared.

  • How to change Mozilla.cfg to set google as default search engine

    Need help with our setting mozilla.cfg file to change the default to yahoo search engine to google.
    Browser.search.defaultenginename in comments: config already has the default value of 'google', so doesn't justing adding this line of modzilla.cfg - ' pref ("browser.search.defaultenginename", "google", as its currently by default.)

    I noticed that if I manually change the search provider (thru the interface), then this value changes from 'default' to 'user set', which retains google as the default search engine. So how do I either set this value as 'user set' within mozilla.cfg, or use some alternative?
    

    thxs

    You can restore the change in Google Yahoo search engine in the Firefox 34.0.5 by enabling / disabling browser.search.isUS to false.
    Note that only 34.0.5 replaces the default search by Yahoo! engine.

    //
    lockPref("browser.search.isUS", false);

    See also these prefs:

  • Via mozilla.cfg proxy settings

    Thus, it is my first foray in the world of config files and such so patient with me if I'm doing something completely wrong.

    I'm writing a mozilla.cfg file which will force the auto proxy detection. I used lockPref ("network.proxy.type", 4), but I get an error 'Unable to read configuration file' at the launch of ff8. When I take this line out (I have a few other settings there), it seems to work ok. What I'm doing wrong here?

    Also, incidentally, are there any settings that I can add to this file that removes the prompt about firefox is not the default browser?

    Can you post the entire content of the text file mozilla.cfg?

    Do you use a ROT13 byte offset?

    See also:

  • I tried to install "Shockwave Flash 10.1 r82" for a few months now, but every time I try it is not applied, because when I opened the modules is still the 9.3.4.218 version, but it still says that the installation was displayed as successful?

    As indicated in the question I have a problem with ' Shockwave Flash 10.1 r82. I use the Version of Firefox 3.6.10 on a 64-bit Win7. I tried to install the application for months and without success. Chrome works fine with the same application on the same computer. The problem is the installation is successful, but Firefox does not apply the upgrade file. Why? I don't know, but I'd like to get this figured out. Thank you

    You have this problem when running in Firefox SafeMode?

    http://support.Mozilla.com/en-us/KB/safe+mode

    Do not choose anything at the moment, just use 'continue in safe mode.

    If this is not the case, see this:

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+theme...

  • No effect of mozilla.cfg

    Hi all

    I am trying to create a new package for SCCM deployment using Firefox 50.0. Unfortunately the .cfg file do not seem to work. My goal is to disable the automatic update feature which works fine manually via the subject: config.

    my local - settings.js contains: pref ("general.config.filename", "mozilla.cfg");

    Mozilla.cfg: //disable application updates Pref ("app.update.enabled", false); Pref ("app.update.auto", false);

    As I read the .cfg is not tolerated error, but it does not work: (for example: pref ("browser.startup.homepage","http://www.google.com'); also does not work.)

    Any advice?

    Thank you in advance!

    Hello to you :-)

    Make sure you also have the second line:

    Pref ("general.config.filename", "mozilla.cfg"); Pref ("general.config.obscure_value", 0);

    Thank you

  • My Google Adsense ads will not appear in Firefox, but do it in other browsers.

    I recently moved to another city, and after having my son set up my computer, I noticed that the Google Adsense ads that I placed on my website are not displayed in Firefox, but they show in other browsers. I updated to Java, cleared history and cache, etc and restarted my computer. And have not the ad blockers will. Other people I know are able to see the ads; as well as the staff of Google, who say that it is a problem with my computer. Any ideas what I can do?
    Thank you

    MSS

    Firefox 42 + has a new feature of protection against the Tracking is enabled by default in private browsing mode.
    You can see a shield icon on the far left of the address bar when you're in private browsing mode that some content is blocked.

    You can disable this feature in "Options/Preferences > privacy".

    • Options/Preferences > Privacy: 'Use Protection in private follow up Windows'
  • some sites do not supported by firefox

    Example, jcpenney, not supported, why

    https://support.Mozilla.org/en-us/KB/Firefox-cant-load-websites-other-browsers-can

  • How to hide the button "Start a conversation" using mozilla.cfg

    Hello

    I've just updated to FF 41.02 and my mozilla.cfg does not hide the smiley face icon (start a conversation). Anyone know how I can do this?

    Here's the line I use for my mozilla.cfg to show/hide icons

    lockPref("browser.uiCustomization.state", "{"placements":{"PanelUI-contents":["edit-controls","downloads-button","new-window-button","privatebrowsing-button","zoom-controls","developer-button","fullscreen-button","preferences-button","history-panelmenu","save-page-button","find-button","add-ons-button","loop-button"],"addon-bar":["addonbar-closebutton","status-bar"],"PersonalToolbar":[],"nav-bar":["urlbar-container","search-container","print-button","home-button"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button"],"toolbar-menubar":["menubar-items"]},"seen":[],"dirtyAreaCache":["PersonalToolbar","nav-bar","TabsToolbar","toolbar-menubar","PanelUI-contents"],"currentVersion":4,"newElementCount":0}");

    Thank you

    Hello

    I managed to get out.

    lockPref ("loop.enabled", false);

Maybe you are looking for

  • Problems with the digital input/output

    Hello I have a little problem with my card PCI-6143. I would use two connectors digital one as a starter and one as an output. Now, I have the problem that I do not know how I address them. The input works as I want but not the output. As an example.

  • Great email is stuck in the output area. In any case to determine if it will send or should it be deleted?

    Send emails with large attachments When trying to send emails with large attachments, sometimes the email seems to be simply stuck in the "Outbox" and the system continuously tries to send the email without success. Is there a way to determine if e-m

  • HP p1102W

    I have a HP LJ P1102w (less than 12 months) who does not install correctly. It worked without problem until when I switched to ATT U-Verse.  But the problem that was happening BEFORE the change of U-Verse. Whenever I turn on the desktop, I had to rel

  • Monitor goes to sleep mode at startup from the system recovery

    I just did a system restore on my desk. I backed up all my files and the wipe seemed fine, but now every time I try to turn on the computer, it goes to the windows logo, loads, then the screen goes to sleep and he will start. Any suggestions? Andrew

  • How to remove an additional monitor?

    original title: Invisible screen I recently updated my video card. my PC is running 2 monitors The second monitor turns off. At first I didn't know why. I looked around a solution and somehow creed a second monitor, but it did not show on my second m