Bug 1532948 - Sanitize principal on shutdown should behave like 'Manage cache and Site Data' cleanup, r=johannh
authorAndrea Marchesini <amarchesini@mozilla.com>
Fri, 05 Apr 2019 10:35:54 +0000
changeset 468321 eb89a2f2c59cd45726b4590af38227d65c23b68e
parent 468313 c9d95a5449027c54a72819094aa0ad2fd9a6279b
child 468322 61f5baa6ed8cdced571731b346e2f44f52508be5
push id35833
push userdvarga@mozilla.com
push dateMon, 08 Apr 2019 16:16:26 +0000
treeherdermozilla-central@50ce9167f1ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1532948
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1532948 - Sanitize principal on shutdown should behave like 'Manage cache and Site Data' cleanup, r=johannh Differential Revision: https://phabricator.services.mozilla.com/D23825
browser/modules/Sanitizer.jsm
--- a/browser/modules/Sanitizer.jsm
+++ b/browser/modules/Sanitizer.jsm
@@ -901,18 +901,22 @@ function cookiesAllowedForDomainOrSubDom
 }
 
 async function sanitizeSessionPrincipal(progress, principal) {
   log("Sanitizing principal: " + principal.URI.spec);
 
   await new Promise(resolve => {
     progress.sanitizePrincipal = "started";
     Services.clearData.deleteDataFromPrincipal(principal, true /* user request */,
+                                               Ci.nsIClearDataService.CLEAR_ALL_CACHES |
+                                               Ci.nsIClearDataService.CLEAR_COOKIES |
                                                Ci.nsIClearDataService.CLEAR_DOM_STORAGES |
-                                               Ci.nsIClearDataService.CLEAR_COOKIES,
+                                               Ci.nsIClearDataService.CLEAR_SECURITY_SETTINGS |
+                                               Ci.nsIClearDataService.CLEAR_EME |
+                                               Ci.nsIClearDataService.CLEAR_PLUGIN_DATA,
                                                resolve);
   });
   progress.sanitizePrincipal = "completed";
 }
 
 function sanitizeNewTabSegregation() {
   let identity = ContextualIdentityService.getPrivateIdentity("userContextIdInternal.thumbnail");
   if (identity) {