master_preferences and Clear Browsing Data on Exit

%3CLINGO-SUB%20id%3D%22lingo-sub-1039708%22%20slang%3D%22en-US%22%3Emaster_preferences%20and%20Clear%20Browsing%20Data%20on%20Exit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1039708%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EEdge%20Version%2079.0.309.30%20(Official%20build)%20beta%20(64-bit)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20create%20a%20custom%20master_preferences%20files%20to%20customize%20%3CSTRONG%3Eclear%20browser%20data%20on%20exit%3C%2FSTRONG%3E%20for%20new%20user%20profiles.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20configuration%20file%20looks%20like%20this%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CEM%3E%7B%22distribution%22%3A%7B%22msi%22%3Atrue%2C%22system_level%22%3Atrue%2C%22verbose_logging%22%3Atrue%2C%22msi_product_id%22%3A%2215DFC7CC-865D-3F20-A979-A7EF2F505E31%22%2C%22allow_downgrade%22%3Afalse%7D%2C%26nbsp%3B%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%22clear_data_on_exit%22%3A%7B%22browsing_history%22%3Afalse%2C%22cache%22%3Atrue%2C%22cookies%22%3Atrue%2C%22download_history%22%3Afalse%2C%22form_data%22%3Atrue%2C%22hosted_apps_data%22%3Atrue%2C%22passwords%22%3Atrue%2C%22site_settings%22%3Atrue%7D%7D%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EWhen%20logging%20with%20a%20new%20user%20a%20having%20a%20look%20at%20the%20settings%20nothing%20is%20enabled%20for%20%3CSTRONG%3EClear%20Browsing%20Data%20on%20Exit%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F159419i1565A1E7368D71A0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20look%20into%20the%20user%20profile%20and%20find%20my%20Settings%20(Preferences%20files)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E...%20%22caretbrowsing%22%3A%7B%22enabled%22%3Afalse%7D%2C%3CSTRONG%3E%22clear_data_on_exit%22%3A%7B%22browsing_history%22%3Afalse%2C%22cache%22%3Atrue%2C%22cookies%22%3Atrue%2C%22download_history%22%3Afalse%2C%22form_data%22%3Atrue%2C%22hosted_apps_data%22%3Atrue%2C%22passwords%22%3Atrue%2C%22site_settings%22%3Atrue%7D%2C%3C%2FSTRONG%3E%22countryid_at_install%22%3A16965%2C%20...%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20I%20manually%20change%20one%20of%20the%20settings%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F159420i8BE4FB0ECCA35402%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BThen%20have%20a%20look%20at%20the%20preferences%20files%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22browser%22%3A%7B%22available_dark_theme_options%22%3A%22All%22%2C%3CSTRONG%3E%22clear_data_on_exit%22%3A%7B%3CFONT%20color%3D%22%23FF0000%22%3E%22cookies%22%3Atrue%3C%2FFONT%3E%7D%2C%3C%2FSTRONG%3E%22dark_theme%22%3Afalse%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E...%20%3CSKIP%20some%3D%22%22%20lines%3D%22%22%3E%3C%2FSKIP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22caretbrowsing%22%3A%7B%22enabled%22%3Afalse%7D%2C%3CSTRONG%3E%22clear_data_on_exit%22%3A%7B%22browsing_history%22%3Afalse%2C%22cache%22%3Atrue%2C%3CFONT%20color%3D%22%23FF0000%22%3E%22cookies%22%3Atrue%3C%2FFONT%3E%2C%22download_history%22%3Afalse%2C%22form_data%22%3Atrue%2C%22hosted_apps_data%22%3Atrue%2C%22passwords%22%3Atrue%2C%22site_settings%22%3Atrue%7D%2C%3C%2FSTRONG%3E%22countryid_at_install%22%3A16965%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20we%20have%20to%20occurrences%20of%26nbsp%3B%3CSTRONG%3Eclear_data_on_exit%20in%20the%20preferences%20%3C%2FSTRONG%3Efile.%20And%20only%20values%20from%20the%20first%20occurrence%20are%20taken%20into%20account.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20me%20it%20looks%20like%20a%20bug%20(file%20parsing%20%2Fupdate).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20confirm%20that%20%3A%3C%2FP%3E%3CP%3E-%20The%20syntax%20of%20my%20master_preferences%20is%20correct%3C%2FP%3E%3CP%3E-%20The%20issue%20can%20be%20reproduced%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMichel%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1449179%22%20slang%3D%22fr-FR%22%3ERe%3A%20master_preferences%20and%20Clear%20Browsing%20Data%20on%20Exit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1449179%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F399636%22%20target%3D%22_blank%22%3E%40Le_Michel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20must%20enable%20the%20data%20cleanup%20and%20select%20what%20do%20you%20want%20to%20clear.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%22browser%22%3A%20%7B%0A%20%20%20%20%20%20%20%20...%0A%20%20%20%20%20%20%20%20%22clear_data%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22on_exit_succeeded%22%3A%20false%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22clear_data_on_exit%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22browsing_history%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22cache%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22cookies%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22download_history%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22form_data%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22hosted_apps_data%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22passwords%22%3A%20true%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20...%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20work%20for%20me.%3C%2FP%3E%3CP%3EBr%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hello,

 

Edge Version 79.0.309.30 (Official build) beta (64-bit)

 

I'm trying to create a custom master_preferences files to customize clear browser data on exit for new user profiles.

 

My configuration file looks like this : 

 

{"distribution":{"msi":true,"system_level":true,"verbose_logging":true,"msi_product_id":"15DFC7CC-865D-3F20-A979-A7EF2F505E31","allow_downgrade":false}, 
"clear_data_on_exit":{"browsing_history":false,"cache":true,"cookies":true,"download_history":false,"form_data":true,"hosted_apps_data":true,"passwords":true,"site_settings":true}}
 
When logging with a new user a having a look at the settings nothing is enabled for Clear Browsing Data on Exit.
 
clipboard_image_0.png

 

So I look into the user profile and find my Settings (Preferences files):

 

... "caretbrowsing":{"enabled":false},"clear_data_on_exit":{"browsing_history":false,"cache":true,"cookies":true,"download_history":false,"form_data":true,"hosted_apps_data":true,"passwords":true,"site_settings":true},"countryid_at_install":16965, ...

 

Now, I manually change one of the settings :

 

clipboard_image_1.png

 

 Then have a look at the preferences files

 

"browser":{"available_dark_theme_options":"All","clear_data_on_exit":{"cookies":true},"dark_theme":false,

 

... <Skip some lines>

 

"caretbrowsing":{"enabled":false},"clear_data_on_exit":{"browsing_history":false,"cache":true,"cookies":true,"download_history":false,"form_data":true,"hosted_apps_data":true,"passwords":true,"site_settings":true},"countryid_at_install":16965,

 

So, we have to occurrences of clear_data_on_exit in the preferences file. And only values from the first occurrence are taken into account.

 

For me it looks like a bug (file parsing /update).

 

Can you confirm that :

- The syntax of my master_preferences is correct

- The issue can be reproduced

 

Kind regards,

 

Michel

1 Reply
Highlighted

@Le_Michel 

 

Hello,

 

You must enable the data cleanup and select what do you want to clear.

"browser": {
        ...
        "clear_data": {
            "on_exit_succeeded": false
        },
        "clear_data_on_exit": {
            "browsing_history": true,
            "cache": true,
            "cookies": true,
            "download_history": true,
            "form_data": true,
            "hosted_apps_data": true,
            "passwords": true
        },
        ...
}

 

It is work for me.

BR