I’m trying to build a firefox addon & I want to add image/icon in the right click content menu , for example, firebug had an icon in the right click context menu,

I wanna do something similar, my addon also consists of menu items
structure of my addon in context menu :
[icon] [menu]
[menu item 1]
[menu item 2]
[menu item 3]
[menu item 4]
How can I do it ?
You have to set the
imageattribute, give the element the classmenu-iconicand store the image so that you can access it.XUL:
JavaScript:
You can also set or change the image dynamically (get a reference to the element first):