rem: toolbars[i].setAttribute("hidden", "true"); 
add: toolbars[i].setAttribute("collapsed", "true"); 
context: function updateToolbarStates(toolbarMenuElt){  if (!gHaveUpdatedToolbarState) {    var mainWindow = document.getElementById("main-window");    if (mainWindow.hasAttribute("chromehidden")) {      gHaveUpdatedToolbarState = true;      var i;      for (i = 0; i < toolbarMenuElt.childNodes.length; ++i)        document.getElementById(toolbarMenuElt.childNodes[i].getAttribute("observes")).removeAttribute("checked");      var toolbars = document.getElementsByTagName("toolbar");            // Start i at 1, since we skip the menubar.      for (i = 1; i < toolbars.length; ++i) {        if (toolbars[i].getAttribute("class").indexOf("chromeclass") != -1)          toolbars[i].setAttribute("hidden", "true");      }      var statusbars = document.getElementsByTagName("statusbar");      for (i = 1; i < statusbars.length; ++i) {        if (statusbars[i].getAttribute("class").indexOf("chromeclass") != -1)          statusbars[i].setAttribute("hidden", "true");      }      mainWindow.removeAttribute("chromehidden");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f9ab1db0c253610bc85d4be7445eb06dfd0f426a/browser.js/clean/browser/base/content/browser.js