rem: var linkHost = this._ios.newURI(aLink.href, null, null).QueryInterface(Ci.nsIURL).host; var currentHost = this._getBrowser().currentURI.host; if (linkHost == currentHost) { 
add: var linkDomain = this._tld.getBaseDomain(this._ios.newURI(aLink.href, null, null).QueryInterface(Ci.nsIURL)); var currentDomain = this._tld.getBaseDomain(this._getBrowser().currentURI); if (linkDomain == currentDomain) 
context:   _isLinkExternal : function(aLink) {    var isExternal = true;    if (aLink instanceof HTMLAnchorElement) {      if (aLink.target == "_self" || aLink.target == "_top") {        isExternal = false;      }      else {        var linkHost = this._ios.newURI(aLink.href, null, null).QueryInterface(Ci.nsIURL).host;        var currentHost = this._getBrowser().currentURI.host;        if (linkHost == currentHost) {          isExternal = false;        }        else {          var linkPos = linkHost.length - (this._tld.getEffectiveTLDLength(linkHost) + 2);          while (linkPos > -1 && linkHost.charAt(linkPos) != ".")            linkPos--;          var currentPos = currentHost.length - (this._tld.getEffectiveTLDLength(currentHost) + 2);          while (currentPos > -1 && currentHost.charAt(currentPos) != ".")            currentPos--;          var linkDomain = linkHost.substr(linkPos + 1);          var currentDomain = currentHost.substr(currentPos + 1);          isExternal = (linkDomain != currentDomain);        }      }    }    return isExternal;  },
meta: 2142	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2142/40aa9912b01c926c8472ab683231ad8050492f7b/webrunner.js/buggy/app/chrome/content/webrunner.js