Clean up SecurityLevel module
When I have some spare time in the future, I should clean up the SecurityLevel.sys.mjs
module to:
- Make it easier to read.
- Add proper js docs.
- Have a clearer distinction between private and public methods.
- Stop returning unused return values from
bindPref
. - Use observer signals to notify android and desktop consumers of a change in security level, instead of requiring consumers to listen to preference changes. Allowing the underlying preferences to be contained to this module, and make the consumers less dependent on internal details.