B2G/gecko/browser/base/content/utilityOverlay.js
/* openUILink handles clicks on UI elements that cause URLs to load.
 *
 * As the third argument, you may pass an object with the same properties as
 * accepted by openUILinkIn, plus "ignoreButton" and "ignoreAlt".
 */
openUILink handles clicks on UI elements that cause URLs to load.
As the third argument, you may pass an object with the same properties as
accepted by openUILinkIn, plus "ignoreButton" and "ignoreAlt".
openUILink handles clicks on UI elements that cause URLs to load . As the third argument you may pass an object with the same properties as accepted by openUILinkIn plus " ignoreButton " and " ignoreAlt " .
function openUILink(url, event, aIgnoreButton, aIgnoreAlt, aAllowThirdPartyFixup,
                    aPostData, aReferrerURI) {
  let params;
  if (aIgnoreButton && typeof aIgnoreButton == "object") {
    params = aIgnoreButton;
    aIgnoreButton = params.ignoreButton;
    aIgnoreAlt = params.ignoreAlt;
    delete params.ignoreButton;
    delete params.ignoreAlt;
  } else {
    params = {
      allowThirdPartyFixup: aAllowThirdPartyFixup,
      postData: aPostData,
      referrerURI: aReferrerURI,
      initiatingDoc: event ? event.target.ownerDocument : null
    };
  }
  let where = whereToOpenLink(event, aIgnoreButton, aIgnoreAlt);
  openUILinkIn(url, where, params);
}
function openUILink ( url , event , aIgnoreButton , aIgnoreAlt , aAllowThirdPartyFixup , aPostData , aReferrerURI ) { let params ; if ( aIgnoreButton && typeof aIgnoreButton == "object" ) { params = aIgnoreButton ; aIgnoreButton = params . ignoreButton ; aIgnoreAlt = params . ignoreAlt ; delete params . ignoreButton ; delete params . ignoreAlt ; } else { params = { allowThirdPartyFixup : aAllowThirdPartyFixup , postData : aPostData , referrerURI : aReferrerURI , initiatingDoc : event ? event . target . ownerDocument : null } ; } let where = whereToOpenLink ( event , aIgnoreButton , aIgnoreAlt ) ; openUILinkIn ( url , where , params ) ; }
openUILink handles clicks on UI elements that cause URLs to load.
openUILink handles clicks on UI elements that cause URLs to load .
// don't forward "ignoreButton" and "ignoreAlt" to openUILinkIn