rem: sidebarObj.component = document.firstChild.getAttribute('windowtype'); 
add: sidebarObj.component = document.documentElement.getAttribute('windowtype'); 
context: function sidebar_overlay_init() {  if (sidebar_is_collapsed() && !gAboutToUncollapse)    return;  gMustInit = false;  sidebarObj.panels = new sbPanelList('sidebar-panels');  sidebarObj.datasource_uri = get_sidebar_datasource_uri();  sidebarObj.resource = 'urn:sidebar:current-panel-list';  sidebarObj.master_datasources = "";  sidebarObj.master_datasources = get_remote_datasource_url();  sidebarObj.master_datasources += " chrome://communicator/content/sidebar/local-panels.rdf";  sidebarObj.master_resource = 'urn:sidebar:master-panel-list';  sidebarObj.component = document.firstChild.getAttribute('windowtype');  debug("sidebarObj.component is " + sidebarObj.component);  // Initialize the display  var sidebar_element = document.getElementById('sidebar-box');  var sidebar_menuitem = document.getElementById('sidebar-menu');  if (sidebar_is_hidden()) {    if (sidebar_menuitem) {      sidebar_menuitem.setAttribute('checked', 'false');    }  } else {    if (sidebar_menuitem) {      sidebar_menuitem.setAttribute('checked', 'true');    }    // for old profiles that don't persist the hidden attribute when splitter is not hidden.    var sidebar_splitter = document.getElementById('sidebar-splitter')    if (sidebar_splitter)      sidebar_splitter.setAttribute('hidden', 'false');        if (sidebarObj.never_built) {      sidebarObj.never_built = false;            debug("sidebar = " + sidebarObj);      debug("sidebarObj.resource = " + sidebarObj.resource);      debug("sidebarObj.datasource_uri = " + sidebarObj.datasource_uri);      // Obtain the pref for limiting the number of tabs in view      try      {        var prefs = Components.classes["@mozilla.org/preferences-service;1"].                      getService(Components.interfaces.nsIPrefBranch);        gNumTabsInViewPref = prefs.getIntPref("sidebar.num_tabs_in_view");      }      catch (ex)      {        gNumTabsInViewPref = 8; // failover default      }      // Show the header for the panels area. Use a splitter if there      // is stuff over the panels area.      var sidebar_panels_splitter = document.getElementById('sidebar-panels-splitter');      if (sidebar_element.firstChild != sidebar_panels_splitter) {        debug("Showing the panels splitter");        sidebar_panels_splitter.removeAttribute('hidden');      }    }    if (sidebar_is_collapsed()) {      sidebarObj.collapsed = true;    } else {      sidebarObj.collapsed = false;    }    sidebar_open_default_panel(100, 0);  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/0816d507c1dbb2a1c42707c80a77fed28eebab9e/sidebarOverlay.js/buggy/suite/common/sidebar/sidebarOverlay.js