rem: var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); var argstring = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISupportsString); argstring.data = url; ww.openWindow(null, "chrome: "chrome,all,dialog=no", argstring); 
add: var protocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"] .getService(Components.interfaces.nsIExternalProtocolService); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = ioService.newURI(url, null, null);    if (protocolSvc.isExposedProtocol(uri.scheme)) { var win = window.top; if (win instanceof Components.interfaces.nsIDOMChromeWindow) { while (win.opener && !win.opener.closed) win = win.opener; } win.open(uri.spec); } else protocolSvc.loadUrl(uri); 
context: function visitLink(aEvent) {  var node = aEvent.target;  while (node.nodeType != Node.ELEMENT_NODE)    node = node.parentNode;  var url = node.getAttribute("link");  if (!url)    return;  var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                     .getService(Components.interfaces.nsIWindowWatcher);  var argstring = Components.classes["@mozilla.org/supports-string;1"]                            .createInstance(Components.interfaces.nsISupportsString);  argstring.data = url;  ww.openWindow(null, "chrome://browser/content/browser.xul", "_blank",                "chrome,all,dialog=no", argstring);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8cb2de7ca74f60308fffd0d86a5a75d5aaa16d47/globalOverlay.js/buggy/toolkit/content/globalOverlay.js