Bug 1524200 - Introduce additional debugging messages to Sanitizer.jsm, r=mak
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 25 Feb 2019 12:32:15 +0000
changeset 460892 81cc693e64178e5a4834828e2e58875dcfd6c1a9
parent 460891 7512223c8faeba18d78b1df065a51f783fccbb1a
child 460893 c51ea0e799689ed0e86c4d9dd4651e32512a7e56
push id78883
push useramarchesini@mozilla.com
push dateMon, 25 Feb 2019 12:33:08 +0000
treeherderautoland@81cc693e6417 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1524200
milestone67.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 1524200 - Introduce additional debugging messages to Sanitizer.jsm, r=mak Differential Revision: https://phabricator.services.mozilla.com/D20976
browser/modules/Sanitizer.jsm
--- a/browser/modules/Sanitizer.jsm
+++ b/browser/modules/Sanitizer.jsm
@@ -745,31 +745,34 @@ async function sanitizeOnShutdown(progre
   progress.advancement = "done";
 }
 
 // Retrieve the list of nsIPrincipals with site data.
 async function getAllPrincipals(progress) {
   progress.step = "principals-quota-manager";
   let principals = await new Promise(resolve => {
     quotaManagerService.getUsage(request => {
+      progress.step = "principals-quota-manager-getUsage";
       if (request.resultCode != Cr.NS_OK) {
         // We are probably shutting down. We don't want to propagate the
         // error, rejecting the promise.
         resolve([]);
         return;
       }
 
       let list = [];
       for (let item of request.result) {
         let principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin(item.origin);
         let uri = principal.URI;
         if (isSupportedURI(uri)) {
           list.push(principal);
         }
       }
+
+      progress.step = "principals-quota-manager-completed";
       resolve(list);
     });
   }).catch(() => []);
 
   progress.step = "principals-service-workers";
   let serviceWorkers = serviceWorkerManager.getAllRegistrations();
   for (let i = 0; i < serviceWorkers.length; i++) {
     let sw = serviceWorkers.queryElementAt(i, Ci.nsIServiceWorkerRegistrationInfo);