over to sso...
Please tell why you want this change.
It seems reasonable that other parts of the UI (menus?) might want to view the wallet contents or otherwise poke at the wallet, but this shouldn't be my bug.
Not my bug either. I question the motivation for making this change because I don't see any reason to double the number of preference files (one js file for every xul file) which is what I presume was ben's original motivation when he structured the files the way he did. Reassigning to ben since he's the one who did this structuring. If he wants to change it, it's alright with me.
See related bugs 56365, 56368, 56370, 56372, and 56374.
when someone needs to use this code elsewhere, they can feel free to shift it into its own file. Until then, no fix from me.