rem: setInfo("link-target", gMetadataBundle.getString("newWindowText")); 
add: case "_new": var where = "Window"; var newWindowPref = prefs.getIntPref("browser.link.open_newwindow"); if (newWindowPref == 3) where = "Tab"; setInfo("link-target", gMetadataBundle.getString("new" + where + "Text")); 
context: function checkForLink(elem, htmllocalname){  if ((htmllocalname === "a" && elem.href != "") ||    htmllocalname === "area") {    setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang")));    setInfo("link-url",  elem.href);    setInfo("link-type", elem.getAttribute("type"));    setInfo("link-rel",  elem.getAttribute("rel"));    setInfo("link-rev",  elem.getAttribute("rev"));    setInfo("link-ping", getPings(elem).join('\n'));    var target = elem.target;    switch (target) {    case "_top":      setInfo("link-target", gMetadataBundle.getString("sameWindowText"));      break;    case "_parent":      setInfo("link-target", gMetadataBundle.getString("parentFrameText"));      break;    case "_blank":      setInfo("link-target", gMetadataBundle.getString("newWindowText"));      break;    case "":    case "_self":      if (elem.ownerDocument.defaultView) {        if (elem.ownerDocument != elem.ownerDocument.defaultView.content.document)          setInfo("link-target", gMetadataBundle.getString("sameFrameText"));        else          setInfo("link-target", gMetadataBundle.getString("sameWindowText"));      } else {        hideNode("link-target");      }      break;    default:      setInfo("link-target", "\"" + target + "\"");    }    onLink = true;  }  else if (elem.getAttributeNS(XLinkNS, "href") != "") {    var ioService = Components.classes["@mozilla.org/network/io-service;1"]                              .getService(Components.interfaces.nsIIOService);    var url = elem.getAttributeNS(XLinkNS, "href");    try {        var baseURI = ioService.newURI(elem.baseURI, elem.ownerDocument.characterSet, null);        url = ioService.newURI(url, elem.ownerDocument.characterSet, baseURI).spec;    } catch (e) {}    setInfo("link-url", url);    setInfo("link-lang", "");    setInfo("link-type", "");    setInfo("link-rel", "");    setInfo("link-rev", "");    setInfo("link-ping", "");    switch (elem.getAttributeNS(XLinkNS,"show")) {    case "embed":        setInfo("link-target", gMetadataBundle.getString("embeddedText"));        break;    case "new":        setInfo("link-target", gMetadataBundle.getString("newWindowText"));        break;    case "":    case "replace":        if (elem.ownerDocument != elem.ownerDocument.defaultView.content.document)            setInfo("link-target", gMetadataBundle.getString("sameFrameText"));        else            setInfo("link-target", gMetadataBundle.getString("sameWindowText"));        break;    default:        setInfo("link-target", "");        break;    }        onLink = true;  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/685b277828e7649badda3dc4bfde66aaea100bbb/metaData.js/buggy/browser/base/content/metaData.js