rem: var sourceURI = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); sourceURI.spec = sourceURL; var destURI = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); destURI.spec = url; 
add:  var sourceURI = makeURI(sourceURL); var destURI = makeURI(url);  
context: function urlSecurityCheck(url, doc) {  // URL Loading Security Check  var focusedWindow = doc.commandDispatcher.focusedWindow;  var sourceURL = getContentFrameURI(focusedWindow);  var sourceURI = Components.classes["@mozilla.org/network/standard-url;1"]                            .createInstance(Components.interfaces.nsIURI);  sourceURI.spec = sourceURL;  var destURI = Components.classes["@mozilla.org/network/standard-url;1"]                          .createInstance(Components.interfaces.nsIURI);  destURI.spec = url;  const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager;  var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"]                         .getService(nsIScriptSecurityManager);  try {    secMan.checkLoadURI(sourceURI, destURI, nsIScriptSecurityManager.STANDARD);  } catch (e) {    throw "Load of " + url + " denied.";  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bc66955a4bf9b8fcb30c12c5a0f6293bb7fbb178/contentAreaUtils.js/clean/browser/base/content/contentAreaUtils.js