X
Tap here to go to the mobile version of the site.

Support Forum

What is the preference to set the auto-update policy (in mozilla.cfg or policies.json) ?

Posted

Hi,

I use a zillion of different profiles and for some settings, I have to use a "mozilla.cfg" file to not lose my mind (and my disk space, deleting the cache upon closing is mandatory). I use different profiles at the same time, and because auto-update has ALWAYS messed up the browsing sessions, I MUST set the auto-update to manual. Not disable it, I just want to install the update when I'm ready to close ALL my currently opened profiles/browsing sessions.

Now with the new auto-update policy, this gets a mess ...

In the preferences GUI, I tried changing the setting "Automatically update" to "Check for updates but let you choose to install them" and monitored about:config, to no avail. No setting gets changed. The most recently created profiles do not even have an "app.update.auto / .enabled" in about:config.

There's the "DisableAppUpdate" in the new policy stuff, but that's not what I want ("This policy turns off application updates").

So, how can I set the manual update setting GLOBALLY ?

Bonus question: the new policy way, compared to the mozilla.cfg way, seems to remove the possibility to pick between DEFAULTING and FORCING a preference (defaultPref / lockPref). Am I right ? If so, why ?

Hi, I use a zillion of different profiles and for some settings, I have to use a "mozilla.cfg" file to not lose my mind (and my disk space, deleting the cache upon closing is mandatory). I use different profiles at the same time, and because auto-update has ALWAYS messed up the browsing sessions, I MUST set the auto-update to manual. Not disable it, I just want to install the update when I'm ready to close ALL my currently opened profiles/browsing sessions. Now with the new auto-update policy, this gets a mess ... In the preferences GUI, I tried changing the setting "Automatically update" to "Check for updates but let you choose to install them" and monitored about:config, to no avail. No setting gets changed. The most recently created profiles do not even have an "app.update.auto / .enabled" in about:config. There's the "DisableAppUpdate" in the new policy stuff, but that's not what I want ("This policy turns off application updates"). So, how can I set the manual update setting GLOBALLY ? Bonus question: the new policy way, compared to the mozilla.cfg way, seems to remove the possibility to pick between DEFAULTING and FORCING a preference (defaultPref / lockPref). Am I right ? If so, why ?

Modified by zithro

Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 31.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17200 solutions 155423 answers

For changes to prefs you can not make via a policies.json file you will still have to use the autoconfig.cfg file to set the related preferences. With policies you can only disable updates.

There is only the app.update.auto pref available that you can set via autoconfig.cfg.

  • pref("app.update.auto", false);

This pref should still be present on the about:config page.

For changes to prefs you can not make via a policies.json file you will still have to use the autoconfig.cfg file to set the related preferences. With policies you can only disable updates. *https://github.com/mozilla/policy-templates/blob/master/README.md There is only the app.update.auto pref available that you can set via autoconfig.cfg. *pref("app.update.auto", false); This pref should still be present on the about:config page.

Modified by cor-el

Was this helpful to you?
Quote

Question owner

Thanks for your answer.

I know all of this already, I'm saying it does not work ! :)

Try it yourself, either with a .cfg file or manually in about:config, the GUI setting does not reflect it.

1. create a profile ("Automatically install update" should be selected by default) 2. change "app.update.auto" to false (optionally restart FF) 3. check the option in the GUI: still on "Auto install"

In the other way, manually checking "Check for updates but let you choose to install them" keeps the check between restarts, but "app.update.auto" is never changed.

Now, maybe the setting is honored internally by FF, but the fact that the GUI option reflects the opposite does not inspire trust ...

Is it simply a display bug ?

Thanks for your answer. I know all of this already, I'm saying it does not work ! :) Try it yourself, either with a .cfg file or manually in about:config, the GUI setting does not reflect it. 1. create a profile ("Automatically install update" should be selected by default) 2. change "app.update.auto" to false (optionally restart FF) 3. check the option in the GUI: still on "Auto install" In the other way, manually checking "Check for updates but let you choose to install them" keeps the check between restarts, but "app.update.auto" is never changed. Now, maybe the setting is honored internally by FF, but the fact that the GUI option reflects the opposite does not inspire trust ... Is it simply a display bug ?
Was this helpful to you?
Quote
BillM 4 solutions 117 answers

FIREFOX *IS* A BUG. MY ENTIRE FIREFOX ENVIRONMENT HAS BEEN EFFECTIVELY TRASHED TWICE THIS YEAR (and it's only February). Clearly Mozilla lacks ANY understanding of software quality control and pre-release testing.

FIREFOX *IS* A BUG. MY ENTIRE FIREFOX ENVIRONMENT HAS BEEN EFFECTIVELY TRASHED TWICE THIS YEAR (and it's only February). Clearly Mozilla lacks ANY understanding of software quality control and pre-release testing.
Was this helpful to you? 0
Quote

Helpful Reply

Please, this is no place for rants, this is a support site (btw make backups).

Do not post if you have no solution to offer.

Please, this is no place for rants, this is a support site (btw make backups). Do not post if you have no solution to offer.
Was this helpful to you? 1
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17200 solutions 155423 answers

Works for me. If I change the update setting in about:preferences then "app.update.auto" changes accordingly. I need to reload about:preferences when I change "app.update.auto" on the about:config page if I have this page open in a tab, so apparently there aren't event listeners for related prefs.

Works for me. If I change the update setting in about:preferences then "app.update.auto" changes accordingly. I need to reload about:preferences when I change "app.update.auto" on the <b>about:config</b> page if I have this page open in a tab, so apparently there aren't event listeners for related prefs.
Was this helpful to you?
Quote

Question owner

Well, which version of FF are you using ? I just tested in a VM, which had v.63.0 (32bits), it worked exactly as you described. Then I launched the update to 65.0. The toggle did not work anymore. On another VM, with FF devEdition/aurora, the toggle was working on 51.0a2 and 56.0b3, but when reaching 66.0b4, the pref "app.update.auto" had been deleted. And under "Check for updates", there is this text: "This setting will apply to all Windows accounts and FF devEd profiles using this installation of FF devEd".

If the preference applies globally, there's no point of storing it in profiles ! So I guess that's why the devs removed "app.update.auto". I don't know why it's working on your FF though ! I just tested 3 different versions with the same behavior, on numerous new/blank/refreshed profiles ^^

The question is now : if not as a user/profile pref, where is this information stored ? It can't be in policies either (or the git readme is not up to date).

Well, which version of FF are you using ? I just tested in a VM, which had v.63.0 (32bits), it worked exactly as you described. Then I launched the update to 65.0. The toggle did not work anymore. On another VM, with FF devEdition/aurora, the toggle was working on 51.0a2 and 56.0b3, but when reaching 66.0b4, the pref "app.update.auto" had been deleted. And under "Check for updates", there is this text: "This setting will apply to all Windows accounts and FF devEd profiles using this installation of FF devEd". If the preference applies globally, there's no point of storing it in profiles ! So I guess that's why the devs removed "app.update.auto". I don't know why it's working on your FF though ! I just tested 3 different versions with the same behavior, on numerous new/blank/refreshed profiles ^^ The question is now : if not as a user/profile pref, where is this information stored ? It can't be in policies either (or the git readme is not up to date).

Modified by zithro

Was this helpful to you?
Quote

Question owner

Bump anyone ?

Bump anyone ?
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17200 solutions 155423 answers

Does other pref code in the autoconfig,cfg file work ?

Firefox versions shows error messages in the Browser Console, so are there any error messages in the Browser Console about the autoconfig file?


If you post/upload the full content of the .cfg file then I can check it.

Does other pref code in the autoconfig,cfg file work ? Firefox versions shows error messages in the Browser Console, so are there any error messages in the Browser Console about the autoconfig file? ---- If you post/upload the full content of the .cfg file then I can check it.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.