User can't change homepage when I set a default one in mozilla.cfg
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)
選擇的解決方法
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...
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/