add:  const tabbarMenuItem = document.getElementById("menuitem_showhide_tabbar");  const visibility = gBrowser.getStripVisibility(); tabbarMenuItem.setAttribute("checked", visibility);    const disabled = gBrowser.browsers.length > 1 || pref.getBoolPref("browser.tabs.autoHide"); tabbarMenuItem.setAttribute("disabled", disabled); 
context: function updateToolbarStates(toolbarMenuElt){  if (gHaveUpdatedToolbarState) {    updateComponentBarBroadcaster();    return;  }  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();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/5abd4b6906f70fa5b65e31894ee2f50032b6b1a6/navigator.js/clean/xpfe/browser/resources/content/navigator.js