rem: 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"); for (i = 0; i < toolbars.length; ++i) { if (toolbars[i].getAttribute("class").indexOf("chromeclass") != -1) toolbars[i].setAttribute("hidden", "true"); } var statusbars = document.getElementsByTagName("statusbar"); for (i = 0; i < statusbars.length; ++i) { if (statusbars[i].getAttribute("class").indexOf("chromeclass") != -1) statusbars[i].setAttribute("hidden", "true"); } mainWindow.removeAttribute("chromehidden"); } } 
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");      for (i = 0; i < toolbars.length; ++i) {        if (toolbars[i].getAttribute("class").indexOf("chromeclass") != -1)          toolbars[i].setAttribute("hidden", "true");      }      var statusbars = document.getElementsByTagName("statusbar");      for (i = 0; i < statusbars.length; ++i) {        if (statusbars[i].getAttribute("class").indexOf("chromeclass") != -1)          statusbars[i].setAttribute("hidden", "true");      }      mainWindow.removeAttribute("chromehidden");    }  }  updateComponentBarBroadcaster();  const tabbarMenuItem = document.getElementById("menuitem_showhide_tabbar");  // Make show/hide menu item reflect current state  const visibility = gBrowser.getStripVisibility();  tabbarMenuItem.setAttribute("checked", visibility);  // Don't allow the tab bar to be shown/hidden when more than one tab is open  // or when we have 1 tab and the autoHide pref is set  const disabled = gBrowser.browsers.length > 1 ||                   pref.getBoolPref("browser.tabs.autoHide");  tabbarMenuItem.setAttribute("disabled", disabled);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3bd45aa3bbf91cb1f53303bdbb9b84e49cda12d2/navigator.js/clean/suite/browser/navigator.js