Bug 1524200 - Introduce additional debugging messages to Sanitizer.jsm, r=mak

Differential Revision: https://phabricator.services.mozilla.com/D20976

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2019-02-25 12:32:15 +00:00
parent 4b9d7d9972
commit a22566dfa7

View File

@ -750,6 +750,7 @@ 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.
@ -765,6 +766,8 @@ async function getAllPrincipals(progress) {
list.push(principal);
}
}
progress.step = "principals-quota-manager-completed";
resolve(list);
});
}).catch(() => []);