add:   const nsIStandardURL = Components.interfaces.nsIStandardURL; const nsIURI = Components.interfaces.nsIURI; const stdURL = Components.classes["@mozilla.org/network/standard-url;1"];  var sourceURL = stdURL.createInstance(nsIStandardURL); var focusedWindow = document.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : window._content.location.href; sourceURL.init(nsIStandardURL.URLTYPE_STANDARD, 80, sourceWin, null);  var targetURL = stdURL.createInstance(nsIStandardURL); targetURL.init(nsIStandardURL.URLTYPE_STANDARD, 80, url, null);  const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"].getService(). QueryInterface(nsIScriptSecurityManager); secMan.CheckLoadURI(sourceURL, targetURL, nsIScriptSecurityManager.STANDARD);  
context:   function openNewWindowWith( url ) {    var newWin;    var wintype = document.firstChild.getAttribute('windowtype');        // if and only if the current window is a browser window and it has a document with a character    // set, then extract the current charset menu setting from the current document and use it to    // initialize the new browser window...    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");      //we should "inherit" the charset menu setting in a new window      newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, charsetArg );    }    else // forget about the charset information.    {      newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url );    }    // Fix new window.        newWin.saveFileAndPos = true;  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e8753953641fa918e3ca4fd118d0f1f0a480a740/navigator.js/clean/xpfe/browser/resources/content/navigator.js