Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

Why do SanitizeOnShutdown and Preferences look different from other policies on the Enterprise Policies page?

  • 7 respostas
  • 0 têm este problema
  • 30 visualizações
  • Última resposta por Terwassolam21434

more options

Are these supposed to look different, or am I just doing something wrong? In the image I included here, SanitizeOnShutdown and Preferences look different from FirefoxHome and look incorrect. I removed other policies to make this simpler, but all of the other policies with multiple policy values look just like FirefoxHome. It appears that SanitizeOnShutdown is at least working since my history is indeed getting cleared on shutdown, but I'm unsure whether this actually works when I set these to the settings they should be since they should all be false other than Locked. Am I doing something wrong here or are these two policies supposed to look like that for some reason? Thank you in advance for the help!

``` {

   "policies": {

"DisablePrivateBrowsing": true,

       "SanitizeOnShutdown": {
           "Cache": false,
           "Cookies": false,
           "Downloads": false,
           "FormData": false,
           "History": true,
           "Sessions": false,
           "SiteSettings": false,
           "OfflineApps": false,

"Locked": true

       },
       "FirefoxHome": {
           "TopSites": false,
           "Search": false,
           "SponsoredTopSites": false,
           "Pocket": false,
           "SponsoredPocket": false,
           "Highlights": false,
           "Snippets": false,
           "Locked": true
       }

"Preferences": {

   	    "browser.contentblocking.category": {
   			"Value": "strict",
   			"Status": "locked"
   		},
   		"extensions.htmlaboutaddons.recommendations.enabled": {
   		    "Value": false,
   		    "Status": false
   		}

}

   }

} ```

Are these supposed to look different, or am I just doing something wrong? In the image I included here, SanitizeOnShutdown and Preferences look different from FirefoxHome and look incorrect. I removed other policies to make this simpler, but all of the other policies with multiple policy values look just like FirefoxHome. It appears that SanitizeOnShutdown is at least working since my history is indeed getting cleared on shutdown, but I'm unsure whether this actually works when I set these to the settings they should be since they should all be false other than Locked. Am I doing something wrong here or are these two policies supposed to look like that for some reason? Thank you in advance for the help! ``` { "policies": { "DisablePrivateBrowsing": true, "SanitizeOnShutdown": { "Cache": false, "Cookies": false, "Downloads": false, "FormData": false, "History": true, "Sessions": false, "SiteSettings": false, "OfflineApps": false, "Locked": true }, "FirefoxHome": { "TopSites": false, "Search": false, "SponsoredTopSites": false, "Pocket": false, "SponsoredPocket": false, "Highlights": false, "Snippets": false, "Locked": true } "Preferences": { "browser.contentblocking.category": { "Value": "strict", "Status": "locked" }, "extensions.htmlaboutaddons.recommendations.enabled": { "Value": false, "Status": false } } } } ```
Capturas de ecrã anexadas

Todas as respostas (7)

more options

I really messed up the formatting, but here's the actual image.

more options

The syntax in your file appears to match the documentation at

https://github.com/mozilla/policy-templates#sanitizeonshutdown-selective

I'm not sure what you mean by this:

Terwassolam21434 said

It appears that SanitizeOnShutdown is at least working since my history is indeed getting cleared on shutdown, but I'm unsure whether this actually works when I set these to the settings they should be since they should all be false other than Locked.

If you want History cleared, it should continue to be set to true, not false.

more options

Thanks! It’s good to hear that the syntax is correct then and the formatting in the about:policies page is completely normal. As for the part you quoted, I definitely said that in a really confusing way; I apologize for that. I meant that I should be setting all of the SanitizeOnShutdown values to false, so I’m not exactly sure if they’re working when I set them to false; it appears to be default behavior to not clear all of these on shutdown. Still, it does work properly and clear everything when I set History to true, so that’s a good sign. Thanks for the help!

more options

Hi, you can see which preferences are modified from defaults by opening about:config and filtering for privacy.clearOnShutdown (many categories default to true).

more options

Thank you! I filtered for privacy.clearOnShutdown, and all of those are set properly.

more options

That is a really odd formatting problem. I'll see if I can figure out what's going on.

more options

Mike Kaply said

That is a really odd formatting problem. I'll see if I can figure out what's going on.

Thank you for looking into it! I appreciate it. I hope it’s not too annoying for you to fix and all.