B2G/gecko/browser/base/content/utilityOverlay.js
/* openUILinkIn opens a URL in a place specified by the parameter |where|.
 *
 * |where| can be:
 *  "current"     current tab            (if there aren't any browser windows, then in a new window instead)
 *  "tab"         new tab                (if there aren't any browser windows, then in a new window instead)
 *  "tabshifted"  same as "tab" but in background if default is to select new tabs, and vice versa
 *  "window"      new window
 *  "save"        save to disk (with no filename hint!)
 *
 * aAllowThirdPartyFixup controls whether third party services such as Google's
 * I Feel Lucky are allowed to interpret this URL. This parameter may be
 * undefined, which is treated as false.
 *
 * Instead of aAllowThirdPartyFixup, you may also pass an object with any of
 * these properties:
 *   allowThirdPartyFixup (boolean)
 *   postData             (nsIInputStream)
 *   referrerURI          (nsIURI)
 *   relatedToCurrent     (boolean)
 */
openUILinkIn opens a URL in a place specified by the parameter |where|.

aAllowThirdPartyFixup controls whether third party services such as Google's
I Feel Lucky are allowed to interpret this URL. This parameter may be
undefined, which is treated as false.

Instead of aAllowThirdPartyFixup, you may also pass an object with any of
these properties:
allowThirdPartyFixup (boolean)
postData             (nsIInputStream)
referrerURI          (nsIURI)
relatedToCurrent     (boolean)
openUILinkIn opens a URL in a place specified by the parameter |where| . aAllowThirdPartyFixup controls whether third party services such as Google ' s I Feel Lucky are allowed to interpret this URL . This parameter may be undefined which is treated as false . Instead of aAllowThirdPartyFixup you may also pass an object with any of these properties : allowThirdPartyFixup ( boolean ) postData ( nsIInputStream ) referrerURI ( nsIURI ) relatedToCurrent ( boolean )
function openUILinkIn(url, where, aAllowThirdPartyFixup, aPostData, aReferrerURI) {
  var params;
  if (arguments.length == 3 && typeof arguments[2] == "object") {
    params = aAllowThirdPartyFixup;
  } else {
    params = {
      allowThirdPartyFixup: aAllowThirdPartyFixup,
      postData: aPostData,
      referrerURI: aReferrerURI
    };
  }
  params.fromChrome = true;
  openLinkIn(url, where, params);
}
function openUILinkIn ( url , where , aAllowThirdPartyFixup , aPostData , aReferrerURI ) { var params ; if ( arguments . length == 3 && typeof arguments [ 2 ] == "object" ) { params = aAllowThirdPartyFixup ; } else { params = { allowThirdPartyFixup : aAllowThirdPartyFixup , postData : aPostData , referrerURI : aReferrerURI } ; } params . fromChrome = true ; openLinkIn ( url , where , params ) ; }
openUILinkIn opens a URL in a place specified by the parameter |where|.
openUILinkIn opens a URL in a place specified by the parameter |where| .