rem: var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); 
add: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); 
context: function LastToClose(){	var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();	var	windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);	var enumerator = windowManagerInterface.getEnumerator( null );    var count = 0;	while ( enumerator.hasMoreElements() && count < 2 )	{		var  windowToClose = enumerator.getNext();        count++;    }    if (count == 1)        return true;    else        return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/58ad7ad612cf759624c52f8d3473225eb3ce4026/widgetglue.js/clean/mailnews/base/resources/content/widgetglue.js