Bug 1089695 - Fixing wrong dependency in Places shutdown. r=mak

This commit is contained in:
David Rajchenbach-Teller
2015-08-10 11:07:54 +02:00
parent 7b1614acf4
commit cb15aec7a6
3 changed files with 56 additions and 23 deletions

View File

@@ -65,7 +65,13 @@ Sanitizer.prototype = {
var itemsToClear = [...aItemsToClear];
} else {
let branch = Services.prefs.getBranch(this.prefDomain);
itemsToClear = Object.keys(this.items).filter(itemName => branch.getBoolPref(itemName));
itemsToClear = Object.keys(this.items).filter(itemName => {
try {
return branch.getBoolPref(itemName);
} catch (ex) {
return false;
}
});
}
// Ensure open windows get cleared first, if they're in our list, so that they don't stick