搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Mozilla.cfg not working when a string is added

  • 3 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 cor-el

more options

I am using a mozilla.cfg with the local-settings.js to edit about:config and the string lockPref("network.automatic-ntlm-auth.allow-non-fqdn",true); will not allow firefox to open. If I remove the string firefox works just fine. Any suggestions?

I am using a mozilla.cfg with the local-settings.js to edit about:config and the string lockPref("network.automatic-ntlm-auth.allow-non-fqdn",true); will not allow firefox to open. If I remove the string firefox works just fine. Any suggestions?

所有回覆 (3)

more options

Can you post the full content of the mozilla.cfg file in case there is another problem with the file?

mozilla.cfg is run as a JavaScript file, so any error in the file will throw an exception and abort the execution.

I'm not having a problem with that line in mozilla.cfg, so I assume that something else is wrong.

由 cor-el 於 修改

more options

here is my cfg file but I can remove the non-fqdn and it works fine

// lockPref("browser.startup.homepage", "");

lockPref("dom.disable_open_during_load",false);

lockPref("app.update.enabled",false);


lockpref("network.automatic-ntlm-auth.trusted-uris",") (I removed the domain's from here)

lockpref("network.automatic-ntlm-auth.allow-proxies", false);


lockPref("network.automatic-ntlm-auth.allow-non-fqdn",true);

由 ryan.gernaat 於 修改

more options

I see two lines with lockpref() instead of lockPref(). Those lines won't work and cause an error. I assume that the trusted-uris value is enclosed in quotes, I only see one quote but you edited this line

lockpref("network.automatic-ntlm-auth.trusted-uris",") (I removed the domain's from here)
lockpref("network.automatic-ntlm-auth.allow-proxies", false);