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 ShowWindowFromResource( node ){  var windowManagerDS = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator']                        .getService(nsIWindowDataSource);  var desiredWindow = null;  var url = node.getAttribute('id');  desiredWindow = windowManagerDS.getWindowForResource( url );  if (desiredWindow)    toOpenWindow(desiredWindow);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/af8351002076df0fdcfa3aaede550e5a213d6de0/macWindowMenu.js/buggy/toolkit/content/macWindowMenu.js