Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

User can't change homepage when I set a default one in mozilla.cfg

  • 2 个回答
  • 3 人有此问题
  • 6 次查看
  • 最后回复者为 ohmer

more options

I have this in mozilla.cfg: pref("browser.startup.homepage", "http://internal.intranet.tld");

This make our intranet as the default home page. But it's not locked (I'm not using lockPref()), so I want to allow an user to change the homepage if he wants.

But, this is not working. Changing the homepage is not saved.

I have this in mozilla.cfg: pref("browser.startup.homepage", "http://internal.intranet.tld"); This make our intranet as the default home page. But it's not locked (I'm not using lockPref()), so I want to allow an user to change the homepage if he wants. But, this is not working. Changing the homepage is not saved.

被采纳的解决方案

hi ohmer, you need to use defaultPref() for settings that users should be able to change and have full control over - pref() only allows to deviate from the default during the current session...

定位到答案原位置 👍 1

所有回复 (2)

more options

选择的解决方案

hi ohmer, you need to use defaultPref() for settings that users should be able to change and have full control over - pref() only allows to deviate from the default during the current session...

more options

Thank for the answer. It also need a little twist to make it working. See https://mike.kaply.com/2012/08/29/setting-the-default-firefox-homepage-with-autoconfig/