rem: originCharset = window._content.document.characterSet; 
add: originCharset = window.content.document.characterSet; 
context: function openNewTabWith(href, linkNode, event, securityCheck, postData){  if (securityCheck)    urlSecurityCheck(href, document);   var prefSvc = Components.classes["@mozilla.org/preferences-service;1"]                          .getService(Components.interfaces.nsIPrefService);  prefSvc = prefSvc.getBranch(null);  // should we open it in a new tab?  var loadInBackground = true;  try {    loadInBackground = prefSvc.getBoolPref("browser.tabs.loadInBackground");  }  catch(ex) {  }  if (event && event.shiftKey)    loadInBackground = !loadInBackground;  // As in openNewWindowWith(), we want to pass the charset of the  // current document over to a new tab.   var wintype = document.firstChild.getAttribute('windowtype');  var originCharset;  if (wintype == "navigator:browser") {    originCharset = window._content.document.characterSet;  }  // open link in new tab  var browser = top.document.getElementById("content");    var theTab = browser.addTab(href, getReferrer(document), originCharset, postData);  if (!loadInBackground)    browser.selectedTab = theTab;    if (linkNode)    markLinkVisited(href, linkNode);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/77a06be2bffbc9148f7bc66369aa20d6220af374/contentAreaUtils.js/buggy/toolkit/content/contentAreaUtils.js