rem: var cwindowManager = Components.classes['component: 
add: var cwindowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); 
context: function SidebarCustomize() {  // Use a single sidebar customize dialog  var cwindowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService();  var iwindowManager = Components.interfaces.nsIWindowMediator;  var windowManager  = cwindowManager.QueryInterface(iwindowManager);  var customizeWindow = windowManager.getMostRecentWindow('sidebar:customize');  if (customizeWindow) {    debug("Reuse existing customize dialog");    customizeWindow.focus();  } else {    debug("Open a new customize dialog");    if (false == gDisableCustomize) {      debug("First time creating customize dialog");      gDisableCustomize = true;      var panels = document.getElementById('sidebar-panels');            customizeWindow = window.openDialog(                         'chrome://communicator/content/sidebar/customize.xul',                         '_blank','centerscreen,chrome,resizable',                         sidebarObj.master_datasources,                         sidebarObj.master_resource,                         sidebarObj.datasource_uri,                         sidebarObj.resource);      setTimeout(enable_customize, 2000);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc70ebd6c97bd0b2fe48c31f579e855387ced9d/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js