搜尋 Mozilla 技術支援網站

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

Learn More

policies.json vs. about:config

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

more options

Hello Firefox-Support Team,

I want to know if i set differnet value for browser.download.folderList in policies.json = 0 in about:config = 1 which value will be enforced?

BRs AM

Hello Firefox-Support Team, I want to know if i set differnet value for browser.download.folderList in policies.json = 0 in about:config = 1 which value will be enforced? BRs AM

所有回覆 (4)

more options

That will likely be the value as set via policies.json. The source code shows:

  DefaultDownloadDirectory: {
    onBeforeAddons(manager, param) {
      setDefaultPref("browser.download.dir", replacePathVariables(param));
      // If a custom download directory is being used, just lock folder list to 2.
      setAndLockPref("browser.download.folderList", 2);
    },
  },

more options

Hello cor-el,

thank you for your quick answer. One more question: Is it a general case that the settings from policies.json will be enforced? It will be suitable for the following examples/PolicyName ,which are listed from this site: https://github.com/mozilla/policy-templates/blob/master/README.md#extensions ? of cousre, only for those, which can been used by about:config.

Thank you! BR AM

more options

If you can set preferences directly then you can set the Locked status if you want.

Are you setting browser.download.dir as well ?

more options

No. Just I have a very extensive settings/preferences and just for the case that things would be sometimes be overlooked, since I set them in two places for different values. The question was purely hypothetical so that I know which setting (from policies.json or about:config/autoconfig) is counted/has the higher prio. If I understand you correctly, then the values (not just limited to my given example at the very beginning) in policies.json has a higer prio then in about:config, right?

由 AmChannel 於 修改