搜索 | 用户支持

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

详细了解

Unable to modify browser.launcherProcess.enabled through autoconfig

  • 6 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 tm1

more options

I have implemented autoconfig and my cfg file is working with other settings, but pref("browser.launcherProcess.enabled", false); will not change the setting - the value is still set to true. Is this configurable through autoconfig?

I have implemented autoconfig and my cfg file is working with other settings, but pref("browser.launcherProcess.enabled", false); will not change the setting - the value is still set to true. Is this configurable through autoconfig?

所有回复 (6)

more options
more options

Can you be more specific? I can't see what connection settings have to do with turning off browser.launcherProcess through autoconfig.

more options

I'm on Linux, so can't test this.

Did you check the Browser Console for possible error messages?

I'm not sure how this pref would work in this case because Firefox is already started when the profile is loaded.

See also:

Its code cannot start nor rely on prefs, XPCOM, nsString, crash reporter, or other aspects of the Gecko runtime. Header-only code that does not depend on xul.dll (such as MFBT) is safe to use in the launcher process;

more options

Can anyone help with a simple answer? I like to know if I as an IT admin for several non admin users can change the Firefox setting "browser.launcherProcess.enabled" which since Firefox 68 has been set to true. I thought that any config settings could be changed with autoconfig and a cfg file. The user can always open about:config and change the setting manually, but I like to automate this.

more options

You need to make sure to use lockPref instead of just pref. Using just pref will only set the value, but it can still be changed by the user. Using lockPref will set the value and prevent the user from changing the value.

It sounds like you probably want to use the following code instead:

lockPref("browser.launcherProcess.enabled", false);

Hope this helps.

more options

Using lockPref("browser.launcherProcess.enabled", false); did change the value from true to false, thanks Wesley, but is there no better solution besides using lockPref? Because now the user is unable to change it back. Why is just using the pref function not able to change the value of browser.launcherProcess.enabled?