mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +00:00
Bug 284086 followup (comment 42): remove extraneous setTimeout, patch by Giorgio Maone <g.maone@informaction.com>, r=ben
This commit is contained in:
parent
dca3c64e08
commit
dd2d7ad71c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user