rem: var newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); 
add: var newWin; var wintype = document.firstChild.getAttribute('windowtype');     if (window && (wintype == "navigator:browser") && window._content && window._content.document) { var DocCharset = window._content.document.characterSet; charsetArg = "charset="+DocCharset; dump("*** Current document charset: " + DocCharset + "\n");   newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, charsetArg ); } else { newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); } 
context:   function openNewWindowWith( url ) {    var newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url );    // Fix new window.        newWin.saveFileAndPos = true;  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/81ca76aad7741a6d878be6ec38049026f50188de/navigator.js/buggy/xpfe/browser/resources/content/navigator.js