rem: var locator_service = Components.classes["component: 
add: var locator_service = Components.classes["@mozilla.org/file/directory_service;1"].getService(); 
context: function sidebar_get_panels_file() {  try {    var locator_service = Components.classes["component://netscape/file/directory_service"].getService();    if (locator_service)      locator_service = locator_service.QueryInterface(Components.interfaces.nsIProperties);    // Use the fileLocator to look in the profile directory to find    // 'panels.rdf', which is the database of the user's currently    // selected panels.    // If <profile>/panels.rdf doesn't exist, GetFileLocation() will copy    // bin/defaults/profile/panels.rdf to <profile>/panels.rdf    var sidebar_file = locator_service.get(PANELS_RDF_FILE, Components.interfaces.nsIFile);    if (!sidebar_file.exists()) {      // This should not happen, as GetFileLocation() should copy      // defaults/panels.rdf to the users profile directory      debug("Sidebar panels file does not exist");      throw("Panels file does not exist");    }    return sidebar_file;  } catch (ex) {    // This should not happen    debug("Error: Unable to grab panels file.\n");    throw(ex);  }  return null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/96cde4474fe82e4dacdcc727eaebd9308fd70684/sidebarOverlay.js/buggy/suite/common/sidebar/sidebarOverlay.js