Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

搜尋 Mozilla 技術支援網站

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

了解更多

此討論串已經關閉並封存。 如果您有需要幫助,請新增一個新問題

HTTPS only mode pre-configuration via cfg/js

  • 4 回覆
  • 1 有這個問題
  • 133 次檢視
  • 最近回覆由 SuMo Bot

更多選項

Is there any official or unofficial article/website explaining all the about:config settings? Currently i am trying to pre-edit all my custom firefox settings with the autoconfig.cfg I noticed that dns over https can be pre-edited with the cfg, so im pretty sure the setting: enable https only mode for all windows, which by default is disabled for whatever questionable reason, can be pre-activated via cfg.

How could i do that?

Is there any official or unofficial article/website explaining all the about:config settings? Currently i am trying to pre-edit all my custom firefox settings with the autoconfig.cfg I noticed that dns over https can be pre-edited with the cfg, so im pretty sure the setting: enable https only mode for all windows, which by default is disabled for whatever questionable reason, can be pre-activated via cfg. How could i do that?

被選擇的解決方法

That is about these two https_only_mode prefs:

  • dom.security.https_only_mode
  • dom.security.https_only_mode_pbm

Note that you can also set dom. prefs via policies.json.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

更多選項

Hello,

I believe you know the spiel about about:config, so I won't include it here.

The about:config setting should be dom.security.https_only_mode (and maybe dom.security.https_only_mode_ever_enabled?) to be set to true.

For more information on setting autoconfig, look at Customizing Firefox Using AutoConfig

更多選項

選擇的解決方法

That is about these two https_only_mode prefs:

  • dom.security.https_only_mode
  • dom.security.https_only_mode_pbm

Note that you can also set dom. prefs via policies.json.

更多選項

Thank you both very much, i appreciate your help alot!

Now i included those settings into firefox.cfg any it seems to be working correctly. lockPref("dom.security.https_only_mode", true); lockPref("dom.security.https_only_mode_ever_enabled", true);

更多選項

This question has been locked because the original author has deleted their account. While you can no longer post new replies, the existing content remains available for reference.