rem: newWindowOfType( aType ); else if ( topWindowOfType != topWindow ) 
add: return null;  if ( topWindowOfType != topWindow ) { 
context: function CycleWindow( aType, aChromeURL ){  var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();  var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);  var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType );  var topWindow = windowManagerInterface.getMostRecentWindow( null );  if ( topWindowOfType == null )    newWindowOfType( aType );  else if ( topWindowOfType != topWindow )    topWindowOfType.focus();  else {    var enumerator = windowManagerInterface.getEnumerator( aType );    var firstWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() );    var iWindow = firstWindow; // ;-)    while ( iWindow != topWindow && enumerator.hasMoreElements() )      iWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() );      var desiredWindow = firstWindow;    if ( enumerator.hasMoreElements() )      desiredWindow = windowManagerInterface.convertISupportsToDOMWindow ( enumerator.getNext() );    if ( desiredWindow == topWindow ) // Only one window, open a new one       newWindowOfType( aType );    else      desiredWindow.focus();  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/6ed40c3805c50433e8240c68cd2994cf0df2d0be/tasksOverlay.js/buggy/xpfe/communicator/resources/content/tasksOverlay.js