Open main menu

CDOT Wiki β

View Image

What happens when I click 'View Image' in the context menu?

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