rem: var browser; 
context: function openNewTabWindowOrExistingWith(aType, aURL, aSendReferrer, aReverseBackgroundPref){  // Make sure we are allowed to open this url  urlSecurityCheck(aURL, document);  // get referrer, if as external should be null  var referrer = aSendReferrer ? getReferrer(document) : null;  var browser;  var browserWin;  // if we're not opening a new window, try and find existing window  if (aType != kNewWindow)    browserWin = getTopWin();  // Where appropiate we want to pass the charset of the   // current document over to a new tab / window.  var originCharset = null;  if (aType != kExistingWindow) {    var wintype = document.documentElement.getAttribute('windowtype');    if (wintype == "navigator:browser")      originCharset = window.content.document.characterSet;  }  // We want to open in a new window or no existing window can be found.  if (!browserWin) {    var charsetArg = null;    if (originCharset)      charsetArg = "charset=" + originCharset;    window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no",                      aURL, charsetArg, referrer);    return;  }  // Get the existing browser object  browser = browserWin.getBrowser();  // Open link in an existing window.  if (aType == kExistingWindow) {    browser.loadURI(aURL);    browserWin.content.focus();    return;  }  // open link in new tab  var loadInBackground = false;  if (pref) {    loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground");    if (aReverseBackgroundPref)      loadInBackground = !loadInBackground;  }  browser.addTab(aURL, referrer, originCharset, !loadInBackground);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6ab93f52cb0b0b4efeefc15c2f2457aa457a7e08/contentAreaUtils.js/clean/suite/common/contentAreaUtils.js