mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1372823 Part 4: Set-up observer for idle-daily in FormHistoryStartup.init not manifest. r=mak
This is so that we don't open a database connection without any of the machinery in place to close it.
This commit is contained in:
parent
d3d6027a4f
commit
8095bde7d5
@ -52,6 +52,7 @@ FormHistoryStartup.prototype = {
|
||||
|
||||
// triggers needed service cleanup and db shutdown
|
||||
Services.obs.addObserver(this, "profile-before-change", true);
|
||||
Services.obs.addObserver(this, "idle-daily", true);
|
||||
Services.obs.addObserver(this, "formhistory-expire-now", true);
|
||||
|
||||
Services.ppmm.loadProcessScript("chrome://satchel/content/formSubmitListener.js", true);
|
||||
|
@ -5,4 +5,3 @@ contract @mozilla.org/satchel/inputlist-autocomplete;1 {bf1e01d0-953e-11df-981c-
|
||||
component {3a0012eb-007f-4bb8-aa81-a07385f77a25} FormHistoryStartup.js
|
||||
contract @mozilla.org/satchel/form-history-startup;1 {3a0012eb-007f-4bb8-aa81-a07385f77a25}
|
||||
category profile-after-change formHistoryStartup @mozilla.org/satchel/form-history-startup;1
|
||||
category idle-daily formHistoryStartup @mozilla.org/satchel/form-history-startup;1
|
||||
|
Loading…
Reference in New Issue
Block a user