rem: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); 
add: var windowManagerDS = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(nsIWindowDataSource); 
context: function checkFocusedWindow(){  var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator);  var sep = document.getElementById("sep-window-list");  // Using double parens to avoid warning  while ((sep = sep.nextSibling)) {    var url = sep.getAttribute('id');    var win = windowManagerInterface.getWindowForResource(url);    if (win == window) {      sep.setAttribute("checked", "true");      break;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ec003bce66ea6a892ea2178934a3fb1339220eb3/tasksOverlay.js/clean/xpfe/communicator/resources/content/tasksOverlay.js