rem: debug("sidebar_open_default_panel("+wait+","+tries+")"); 
add: var ds = RDF.GetDataSource(sidebarObj.datasource_uri); var currentListRes = RDF.GetResource("urn:sidebar:current-panel-list"); var panelListRes = RDF.GetResource("http: var container = ds.GetTarget(currentListRes, panelListRes, true); if (container) {    var panels = document.getElementById('sidebar-panels');  var ds = RDF.GetDataSource(sidebarObj.datasource_uri); panels.database.AddDataSource(ds); 
context: function sidebar_open_default_panel(wait, tries) {  var panels = document.getElementById('sidebar-panels');  debug("sidebar_open_default_panel("+wait+","+tries+")");  // Make sure the sidebar exists before trying to refresh it.  if (panels.childNodes.length <= 2) {    if (tries < 3) {      // No children yet, try again later      setTimeout('sidebar_open_default_panel('+(wait*2)+','+(tries+1)+')',wait);      return;    } else {      sidebar_fixup_datasource();    }  }  sidebarObj.panels.refresh();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/89269950d52a0953573662e8e433fcc72fdf7c94/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js