futpib / policeman

Firefox extention for cross-site requests control (kind of RequestPolicy clone)
https://addons.mozilla.org/en-US/firefox/addon/policeman/
142 stars 11 forks source link

Adding persistent rules and then killing the ff process leads to loss of the added rules #179

Closed requiredregistration closed 9 years ago

requiredregistration commented 9 years ago

the rules are not lost with normal process exit/quit

0.19pre0

futpib commented 9 years ago

Regardless of Firefox version changes to rules are saved periodically. Since saving involves writing all the rules, and there may be indefinitely lot of them, I don't think saving them on every change is the right way to go.

Also, rules are saved on shutdown, but Firefox does not handle SIGTERM properly (336193), so Policeman can not shutdown properly as well.

Auto-save interval is controlled by ruleset.autosave.checkIntervalMinutes preference (no UI provided for that one, but you can find it on about:config page). The default value is 7, the hard-coded minimum is 2 (for no good reason really). Restart is required for changes to this preference.

0xBRM commented 9 years ago

Should implement a way to force policeman to save them manually then.