bug 840124 - bustage fix for debug leaks

This commit is contained in:
Mike Connor 2013-03-26 02:37:59 -04:00
parent c60acf2d88
commit 22fecad304
2 changed files with 7 additions and 2 deletions

View File

@ -48,6 +48,7 @@ let gTests = [
}
else if (e.data.type == "testsComplete") {
is(results, e.data.count, "Checking number of results received matches the number of tests that should have run");
win.removeEventListener("message", testLoad, false, true);
deferred.resolve();
}

View File

@ -888,13 +888,17 @@ CrashesProvider.prototype = Object.freeze({
let pending = yield service.getPendingFiles();
let submitted = yield service.getSubmittedFiles();
function getAgeLimit() {
return 0;
}
let lastCheck = yield this.getState("lastCheck");
if (!lastCheck) {
lastCheck = 0;
lastCheck = getAgeLimit();
} else {
lastCheck = parseInt(lastCheck, 10);
if (Number.isNaN(lastCheck)) {
lastCheck = 0;
lastCheck = getAgeLimit();
}
}