为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

What does pref.browser.language.disable_button.remove do?

  • 5 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 Mike Kaply

more options

I am reviewing my user.js and pref.js files in anticipation of deploying policy settings in GPO. As a part of the review, I am trying to document what each of the preferences in those files actually do, in order to be able to see in the future why a setting was set the way it was.

I am presently at the preference "pref.browser.language.disable_button.remove". Based on the name of the preference, I would think that if set to true, it would disable the remove button in the Webpage Language Settings window. (Hamburger menu -> Settings -> General -> Language -> Choose your preferred language for displaying pages)

When I set it to true, it does not disable the remove button but when I use the remove button, the preference is set to false.

Am I misunderstanding the purpose of this preference or is there more to using this preference than just setting its value in about:config?

Also, I see there are a number of other preferences that contain disable_button but that only one, "pref.privacy.disable_button.view_passwords", has a GPO policy for setting. I would expect that these preferences containing disable_button would all work in a similar way just each for a different button in the Firefox GUI.

If it matters, I'm running Firefox 115.3.1esr 64-bit en-ca on Windows 10.

I am reviewing my user.js and pref.js files in anticipation of deploying policy settings in GPO. As a part of the review, I am trying to document what each of the preferences in those files actually do, in order to be able to see in the future why a setting was set the way it was. I am presently at the preference "pref.browser.language.disable_button.remove". Based on the name of the preference, I would think that if set to true, it would disable the remove button in the Webpage Language Settings window. (Hamburger menu -> Settings -> General -> Language -> Choose your preferred language for displaying pages) When I set it to true, it does not disable the remove button but when I use the remove button, the preference is set to false. Am I misunderstanding the purpose of this preference or is there more to using this preference than just setting its value in about:config? Also, I see there are a number of other preferences that contain disable_button but that only one, "pref.privacy.disable_button.view_passwords", has a GPO policy for setting. I would expect that these preferences containing disable_button would all work in a similar way just each for a different button in the Firefox GUI. If it matters, I'm running Firefox 115.3.1esr 64-bit en-ca on Windows 10.

所有回复 (5)

more options

> Am I misunderstanding the purpose of this preference or is there more to using this preference than just setting its value in about:config?

That's definitely what it's supposed to do, but it's not working. I'm checking when it stopped working.

> Also, I see there are a number of other preferences that contain disable_button but that only one, "pref.privacy.disable_button.view_passwords", has a GPO policy for setting

That one is called out because the PasswordManagerEnabled policy sets it.

The Homepage policy also sets some of those preferences.

I should probably make all of the "pref." preferences settable via policy.

Are there ones in particular you are using?

more options

The settings in my user.js file related to this are: "pref.browser.language.disable_button.remove" "pref.general.disable_button.default_browser" "pref.privacy.disable_button.cookie_exceptions" "pref.privacy.disable_button.tracking_protection_exceptions" "pref.privacy.disable_button.view_passwords" "pref.privacy.disable_button.view_passwords_exceptions"

But in a Google search for the first one, I came across one of the source files for Firefox. It had two other preferences with the same name other than substitute "remove" with "up" and "down" or something like that. Right now I'm just testing them to see what they do, in addition to seeing what Google can find me in the way of description. I'm also going to do a search of the Firefox codebase for 115 ESR for "disable_button" to see what other settings there are.

more options

Such disable-button prefs may only work when they are locked, so you can't do this via user.js but you can possibly do this via autoconfig with lockPref().

more options

Support for setting all of the pref. preferences via the Preferences policy will be in Firefox 120/Firefox ESR 115.5.

I am going to look into why some of these prefs aren't working anymore.

But cor-el is correct, they must be locked.

more options

OK, so I'm going to try to close the loop here. I went through and tested every pref that we have for this. I found two that we don't need anymore (pref.privacy.disable_button.view_cookies and pref.privacy.disable_button.change_blocklist). I'm getting those removed.

The following ones will work in the next version of Firefox when pref. is added to the Preferences policy in the next version of Firefox:

pref.browser.homepage.disable_button.current_page pref.browser.homepage.disable_button.bookmark_page pref.browser.homepage.disable_button.restore_default pref.privacy.disable_button.view_passwords pref.advanced.proxies.disable_button.reload pref.general.disable_button.default_browser pref.downloads.disable_button.edit_actions app.update.disable_button.showUpdateHistory pref.privacy.disable_button.tracking_protection_exceptions pref.privacy.disable_button.cookie_exceptions pref.privacy.disable_button.view_passwords_exceptions

And I'm adding these to policy so they will work

security.disable_button.openCertManager security.disable_button.openDeviceManager

The following ones don't work:

pref.browser.language.disable_button.up pref.browser.language.disable_button.down pref.browser.language.disable_button.remove

I'm going to investigate why they don't work, but I'm not 100% convinced these are needed? I'm not sure why someone would want to disable these buttons...