Bug 284086 followup (comment 42): remove extraneous setTimeout, patch by Giorgio Maone <g.maone@informaction.com>, r=ben

This commit is contained in:
gavin%gavinsharp.com 2005-11-27 02:25:30 +00:00
parent dca3c64e08
commit dd2d7ad71c

View File

@ -1185,10 +1185,8 @@ function SanitizeListener()
if (gPrefService.prefHasUserValue(this.didSanitizeDomain)) {
gPrefService.clearUserPref(this.didSanitizeDomain);
// We need to persist this preference change, since we want to
// check it at next app start even if the browser exits abruptly,
// but we can afford some delay before I/O, so perceived
// startup speed is not affected :)
window.setTimeout(function() { gPrefService.savePrefFile(null); }, 1000);
// check it at next app start even if the browser exits abruptly
gPrefService.savePrefFile(null);
}
}