My goal is to reorder the context menu.
Unfortunately that’s not actually possible with userChrome.css despite the claims it is. Basically userChrome will often move everything you specify ordering on to the bottom of the menu. It’s due to menu items not being given a default -moz-box-ordinal-group value (i.e. 100) so trying to reorder creates 2 groups the ordered and the unordered. The ordered is typically rendered after the unordered instead of before it causing major problems.
So i’m looking to write an addon to do it.
Unfortunately I can’t find any documentation to access browser objects at a suitable level.
So what api’s or objects can we access in an addon to interact with the browsers “physical” layer?