Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

mozilla.cfg not being applied in Firefox 4

  • 2 απαντήσεις
  • 34 έχουν αυτό το πρόβλημα
  • 34 προβολές
  • Τελευταία απάντηση από amcdougall

more options

I am trying to get certain settings configured and locked using mozilla.cfg. We have used this exact method in Firefox 3.x but for some reason it is ignoring mozilla.cfg.

Here is 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 all.js lines

pref("general.config.obscure_value", 0); // for MCD .cfg files
pref("general.config.filename", "mozilla.cfg");
I am trying to get certain settings configured and locked using mozilla.cfg. We have used this exact method in Firefox 3.x but for some reason it is ignoring mozilla.cfg. Here is my mozilla.cfg <pre><nowiki>// 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); }</nowiki></pre> and the appropriate all.js lines pref("general.config.obscure_value", 0); // for MCD .cfg files pref("general.config.filename", "mozilla.cfg");

Τροποποιήθηκε στις από το χρήστη cor-el

Επιλεγμένη λύση

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

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

Ανάγνωση απάντησης σε πλαίσιο 👍 3

Όλες οι απαντήσεις (2)

more options

Επιλεγμένη λύση

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

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