rem: var windowMediator = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator']. 
add: var windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1']. 
context:     closeAll: function(aAskToSave)  {            var windowMediator = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].                                getService(Components.interfaces.nsIWindowMediator);        var enumerator = windowMediator.getEnumerator(null);        while (enumerator.hasMoreElements()) {           var domWindow = enumerator.getNext();           if (aAskToSave && ("tryToClose" in domWindow)) {               if (!domWindow.tryToClose())                   return false;           }           domWindow.close();        };            return true;    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/58ad7ad612cf759624c52f8d3473225eb3ce4026/nsCloseAllWindows.js/clean/xpfe/components/startup/src/nsCloseAllWindows.js