View Image

From CDOT Wiki
Jump to: navigation, search

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
  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