rem: chrome[i++] = document.getElementById("sidebar-splitter"); 
add: document.getElementById("sidebar-splitter").hidden = false; 
context: function toggleAffectedChrome(aHide){  // chrome to toggle includes:  //   (*) menubar  //   (*) navigation bar  //   (*) personal toolbar  //   (*) tab browser ``strip''  //   (*) sidebar  if (!gChromeState)    gChromeState = new Object;  var chrome = new Array;  var i = 0;  chrome[i++] = document.getElementById("main-menubar");  chrome[i++] = document.getElementById("nav-bar");  chrome[i++] = document.getElementById("PersonalToolbar");  // sidebar states map as follows:  //   was-hidden    => hide/show nothing  //   was-collapsed => hide/show only the splitter  //   was-shown     => hide/show the splitter and the box  if (aHide)  {    // going into print preview mode    if (sidebar_is_collapsed())    {      gChromeState.sidebar = "was-collapsed";      chrome[i++] = document.getElementById("sidebar-splitter");    }    else if (sidebar_is_hidden())      gChromeState.sidebar = "was-hidden";    else     {      gChromeState.sidebar = "was-visible";      chrome[i++] = document.getElementById("sidebar-box");      chrome[i++] = document.getElementById("sidebar-splitter");    }  }  else  {    // restoring normal mode (i.e., leaving print preview mode)    if (gChromeState.sidebar == "was-collapsed" ||        gChromeState.sidebar == "was-visible")      chrome[i++] = document.getElementById("sidebar-splitter");    if (gChromeState.sidebar == "was-visible")      chrome[i++] = document.getElementById("sidebar-box");  }  // now that we've figured out which elements we're interested, toggle 'em  for (i = 0; i < chrome.length; ++i)  {    if (aHide)      chrome[i].hidden = true;    else      chrome[i].hidden = false;  }  // if we are unhiding and sidebar used to be there rebuild it  if (!aHide && gChromeState.sidebar == "was-visible")    SidebarRebuild();      // now deal with the tab browser ``strip''   var theTabbrowser = document.getElementById("content");   if (aHide) // normal mode -> print preview  {    gChromeState.hadTabStrip = theTabbrowser.getStripVisibility();    theTabbrowser.setStripVisibilityTo(false);  }  else // print preview -> normal mode  {    // tabs were showing before entering print preview    if (gChromeState.hadTabStrip)     {      theTabbrowser.setStripVisibilityTo(true);      gChromeState.hadTabStrip = false; // reset    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ac0eb2260dd2066c42dc02e2d88ddb1416681605/browser.js/buggy/suite/browser/browser.js