rem: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator); var desiredWindow = windowManager.getMostRecentWindow(windowType); 
add: var desiredWindow = GetWindowByWindowType(windowType); 
context: function OpenOrFocusWindow(args, windowType, chromeURL){  var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator);  var desiredWindow = windowManager.getMostRecentWindow(windowType);  if (desiredWindow) {    desiredWindow.focus();    if ("refresh" in args && args.refresh)      desiredWindow.refresh();  }  else    window.openDialog(chromeURL, "", "chrome,resizable,status,centerscreen,dialog=no", args);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/54522eb2c6f559ab61528b22bba43d89801556cf/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js