B2G/gecko/browser/base/content/browser.js
/**
 * Handles clicks on links.
 *
 * @return true if the click event was handled, false otherwise.
 */
Handles clicks on links.
@return true if the click event was handled, false otherwise.
Handles clicks on links . @return true if the click event was handled false otherwise .
function handleLinkClick(event, href, linkNode) {
  if (event.button == 2) 
    return false;
  var where = whereToOpenLink(event);
  if (where == "current")
    return false;
  var doc = event.target.ownerDocument;
  if (where == "save") {
    saveURL(href, linkNode ? gatherTextUnder(linkNode) : "", null, true,
            true, doc.documentURIObject, doc);
    event.preventDefault();
    return true;
  }
  urlSecurityCheck(href, doc.nodePrincipal);
  openLinkIn(href, where, { referrerURI: doc.documentURIObject,
                            charset: doc.characterSet });
  event.preventDefault();
  return true;
}
function handleLinkClick ( event , href , linkNode ) { if ( event . button == 2 ) return false ; var where = whereToOpenLink ( event ) ; if ( where == "current" ) return false ; var doc = event . target . ownerDocument ; if ( where == "save" ) { saveURL ( href , linkNode ? gatherTextUnder ( linkNode ) : "" , null , true , true , doc . documentURIObject , doc ) ; event . preventDefault ( ) ; return true ; } urlSecurityCheck ( href , doc . nodePrincipal ) ; openLinkIn ( href , where , { referrerURI : doc . documentURIObject , charset : doc . characterSet } ) ; event . preventDefault ( ) ; return true ; }
Handles clicks on links.
Handles clicks on links .
// right click