View Image
- 'View Image' is bound to the element viewImageCmd.label in browser.dtd
- The 'oncommand' function is defined as gContextMenu.viewImage(event) in browser-context.inc
- 'viewImage' is defined in browser.js which calls openUILink
- 'openUILink' calls openUILinkIn
- Eventually, openUILinkIn calls browser.addURI
- 'browser.addURI' gets a reference to a <tabbrowser> element through getWebNavigation()
- A <tabbrowser> element is defined in browser.xml
- Eventually, there is a C++ function that get's called, nsDocShell::LoadURI