Menus

This article is in need of a technical review.

An extension will often wish to attach a new command to a menu. To do this, the new menu will need to be overlaid over the existing menu that the item should be displayed upon. For more information about how to use an overlay to modify a menu, see Using Menus and Popups in Extensions

The following tables list the IDs of menus in Firefox that are commonly overlaid upon.

Firefox menus

Element ID Description
main-menubar The menubar element.
menu_FilePopup The menupopup associated with the File menu.
menu_EditPopup The menupopup associated with the Edit menu.
menu_viewPopup The menupopup associated with the View menu.
goPopup The menupopup associated with the Go/History menu.
menu_ToolsPopup The menupopup associated with the Tools menu.
menu_HelpPopup The menupopup associated with the Help menu.
menu_viewSidebarMenu The menupopup for the Sidebar submenu on the View menu.
menuWebDeveloperPopup The menupopup or the Web Developer submenu on the Tools menu.

Firefox context menu

Element ID Description Relevant context
contentAreaContextMenu The popup for the context menu when context clicking on a web page displayed in the browser area.  
spell-no-suggestions The no spelling suggestions item, notable as it is the first item on the context menu. Editable Text
context-openlink Opens a link in a new window Links
context-openlinkintab Opens a link in a new tab Links
context-bookmarklink Bookmark a link Links
context-savelink Save a link Links
context-sendlink Send a link in an email Links
context-copyemail Copy an email address mailto: Links
context-copylink Copy a link Links
context-viewimage View an image at full size Images
context-copyimage-contents Copy an image to the clipboard Images
context-copyimage Copy the URL of an image to the clipboard Images
context-saveimage Save an image Images
context-sendimage Send an image in a email Images
context-setDesktopBackground Set an image as the desktop background Images
context-blockimage Block an image Images
context-back Back a page  
context-forward Forward a page  
context-reload Reload page  
context-stop Stop loading page  
context-bookmarkpage Bookmark page  
context-savepage Save page  
context-sendpage Send page in an email  
context-viewbgimage View background image  
context-undo Undo Editable Text
context-cut Cut to clipboard Editable Text
context-copy Copy to clipboard  
context-paste Paste from clipboard Editable Text
context-delete Delete selection Editable Text
context-selectall Select all  
context-searchselect Selected Text  
context-viewpartialsource-selection View selection source Selection
context-viewpartialsource-mathml View MathML source MathML
context-viewsource View source  
context-viewinfo View page info  
context-metadata View properties  
context-spell-check-enabled Spell check enabled checkbox  
context-inspect Inspect element  

 

Document Tags and Contributors

Contributors to this page: Sheppy, fscholz, kscarfone, vladimir_svyatski, kaao, Enn
Last updated by: Sheppy,