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!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

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

  • 7 trả lời
  • 0 gặp vấn đề này
  • 30 lượt xem
  • Trả lời mới nhất được viết bởi 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 } } } } ```
Đính kèm ảnh chụp màn hình

Tất cả các câu trả lời (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.