1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 11:15:46 +01:00

Don't run the sanitizer at shutdown unasked.

This commit is contained in:
Kris Maglione
2010-10-14 18:31:59 -04:00
parent 9f9021e68e
commit e44b0f60d4

View File

@@ -242,7 +242,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
this.sanitizeItems(null, Range(this.sessionStart), null, "sessionHistory");
},
"quit-application-granted": function (subject, data) {
if (!this.sanitizeItems(null, Range(), null, "shutdown"))
if (this.runAtShutdown && !this.sanitizeItems(null, Range(), null, "shutdown"))
this.ranAtShutdown = true;
},
"private-browsing": function (subject, data) {