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