Creating a context menu using the SDK

I’m developing a restartless firefox add-on that has a panel and tab view comparable to “Downloads” (about:downloads).

The next step is to implement a context menu with the same style as the traditional menu but with completely different menu items. Is it possible to create my own context menu using the SDK or do I need XUL overlays?

Adding new menu items using the module “context-menu” is not sufficient, because I don’t want the default items like “Back”, “Forward”, “Save Page As…”, and so on.

Thanks a lot!

If you want to completely override the context menu, then the SDK is probably not enough. You might be able to pull it off without an overlay, and use a bootstrapped extension instead. It may even be possible from an SDK extension if you use require("chrome"). This doc may be helpful.