I think we should enhance get_setting to use SpecialPowers so we don't have to switch to the System app context. I wouldn't hold up this pull request though, but refactoring this should be part of the enhancement.