Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Issue implementing a lockfile in Firefox v.26.0.

  • 7 risposte
  • 3 hanno questo problema
  • 7 visualizzazioni
  • Ultima risposta di Piercerejr

more options

Found pleny of guidance online, it just doesn't seem to work for me. Local-settings.js located D:\Program Files (x86)\Mozilla Firefox\defaults\pref

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

Mozilla.cfg Located D:\Program Files (x86)\Mozilla Firefox

//
lockPref("security.enable_ssl3", true);
lockPref("security.default_personal_cert", "Ask Every Time");
lockPref("network.protocol-handler.external.shell", false);
lockPref("plugin.disable_full_page_plugin_for_types", "application/PDF,application/FDF,application/XFDF,application/LSL,application/LSO,application/LSS,application/IQY,application/RQY,application/XLK,application/XLS,application/XLT,application/POT,application/PPS,application/PPT,application/DOS,application/DOT,application/WKS,application/BAT,application/PS,application/EPS,application/WCH,application/WCM,application/WB1,application/WB3,application/RTF,application/DOC,application/MDB,application/MDE,application/WBK,application/WB1,application/WCH,application/WCM,application/AD,application/ADP");
lockPref("browser.formfill.enable", false);
lockPref("signon.prefillForms", false);
lockPref("signon.rememberSignons", false);
lockPref("privacy.sanitize.sanitizeOnShutdown", true);
lockPref("privacy.sanitize.promptO   nSanitize", false);
lockPref("dom.disable_window_open_feature.status", true);
lockPref("dom.disable_window_move_resize", true);
lockPref("security.enable_ssl2", false);
lockPref("security.enable_tls", true);
lockPref("dom.disable_window_flip", true);
lockPref("dom.event.contextmenu.enabled", false);
lockPref("dom.disable_window_status_change", true);
lockPref("dom.disable_window_open_feature.status", true);
lockPref("security.warn_leaving_secure", true);
lockPref("browser.startup.homepage", "about:blank");
lockPref("app.update.enable", false);
lockPref("extensions.update.enabled", false);
lockPref("browser.search.update", false);

I know at this point some of the setting may be incorrect in my Mozilla.cfg file. However my problem starts before that. It is as if Firefox is not seeing or referencing my local-settings.js file at all.

Found pleny of guidance online, it just doesn't seem to work for me. Local-settings.js located D:\Program Files (x86)\Mozilla Firefox\defaults\pref Pref("general.config.obscure_value", 0); Pref("general.config.filename", "Mozilla.cfg"); Mozilla.cfg Located D:\Program Files (x86)\Mozilla Firefox <pre><nowiki>// lockPref("security.enable_ssl3", true); lockPref("security.default_personal_cert", "Ask Every Time"); lockPref("network.protocol-handler.external.shell", false); lockPref("plugin.disable_full_page_plugin_for_types", "application/PDF,application/FDF,application/XFDF,application/LSL,application/LSO,application/LSS,application/IQY,application/RQY,application/XLK,application/XLS,application/XLT,application/POT,application/PPS,application/PPT,application/DOS,application/DOT,application/WKS,application/BAT,application/PS,application/EPS,application/WCH,application/WCM,application/WB1,application/WB3,application/RTF,application/DOC,application/MDB,application/MDE,application/WBK,application/WB1,application/WCH,application/WCM,application/AD,application/ADP"); lockPref("browser.formfill.enable", false); lockPref("signon.prefillForms", false); lockPref("signon.rememberSignons", false); lockPref("privacy.sanitize.sanitizeOnShutdown", true); lockPref("privacy.sanitize.promptO nSanitize", false); lockPref("dom.disable_window_open_feature.status", true); lockPref("dom.disable_window_move_resize", true); lockPref("security.enable_ssl2", false); lockPref("security.enable_tls", true); lockPref("dom.disable_window_flip", true); lockPref("dom.event.contextmenu.enabled", false); lockPref("dom.disable_window_status_change", true); lockPref("dom.disable_window_open_feature.status", true); lockPref("security.warn_leaving_secure", true); lockPref("browser.startup.homepage", "about:blank"); lockPref("app.update.enable", false); lockPref("extensions.update.enabled", false); lockPref("browser.search.update", false); </nowiki></pre> I know at this point some of the setting may be incorrect in my Mozilla.cfg file. However my problem starts before that. It is as if Firefox is not seeing or referencing my local-settings.js file at all.

Modificato da cor-el il

Soluzione scelta

You did change the content (pref and mozilla) to lowercase in the local-setting.js file?

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

Also make sure that the local-settings.js is a plain text file and you may need Unix style line endings (i.e. a linefeed instead of a CR/LF).

Also make sure to name the mozilla.cfg file with lowercase 'm'.

See also:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes
Leggere questa risposta nel contesto 👍 1

Tutte le risposte (7)

more options

hello, the local-settings.js file may be case sensitive:

pref("general.config.obscure_value", 0); 
pref("general.config.filename", "mozilla.cfg");
more options

Note that the SSL prefs have been changed and prefs like these are no longer supported in the current Firefox release.

lockPref("security.enable_ssl2", false); // SSL2 not supported since Firefox 8
lockPref("security.enable_ssl3", true);
lockPref("security.enable_tls", true);

See also:

more options

Thanks for that note. Like i said I'm not even getting that far for that to be an issue yet.

more options

Did you verify in the Properties that the local-settings.js file is a JScript file as Windows would call it and not a text file with a hidden .txt file extension (local-settings.js.txt)?

more options

Yep. It is showing as a js file file correctly.

more options

Soluzione scelta

You did change the content (pref and mozilla) to lowercase in the local-setting.js file?

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

Also make sure that the local-settings.js is a plain text file and you may need Unix style line endings (i.e. a linefeed instead of a CR/LF).

Also make sure to name the mozilla.cfg file with lowercase 'm'.

See also:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes
more options

Capitalization was my fault. It works. Thank you for your help!!!!