rem: var noOptionalStyles = true; 
context: function stylesheetFillPopup(menuPopup){  var itemNoOptStyles = menuPopup.firstChild;  while (itemNoOptStyles.nextSibling)    menuPopup.removeChild(itemNoOptStyles.nextSibling);  var noOptionalStyles = true;  var styleSheets = getAllStyleSheets(window.content);  var currentStyleSheets = [];  for (var i = 0; i < styleSheets.length; ++i) {    var currentStyleSheet = styleSheets[i];    if (currentStyleSheet.title) {      if (!currentStyleSheet.disabled)        noOptionalStyles = false;      var lastWithSameTitle = null;      if (currentStyleSheet.title in currentStyleSheets)        lastWithSameTitle = currentStyleSheets[currentStyleSheet.title];      if (!lastWithSameTitle) {        var menuItem = document.createElement("menuitem");        menuItem.setAttribute("type", "radio");        menuItem.setAttribute("label", currentStyleSheet.title);        menuItem.setAttribute("data", currentStyleSheet.title);        menuItem.setAttribute("checked", !currentStyleSheet.disabled);        menuPopup.appendChild(menuItem);        currentStyleSheets[currentStyleSheet.title] = menuItem;      } else {        if (currentStyleSheet.disabled)          lastWithSameTitle.removeAttribute("checked");      }    }  }  itemNoOptStyles.setAttribute("checked", noOptionalStyles);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d85ecd00f9e990203c7dcfe923047c75311ca15c/navigator.js/buggy/xpfe/browser/resources/content/navigator.js