rem: persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? true : false; 
add: persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? haveAltSheets : false; 
context: function stylesheetFillPopup(menuPopup){  var noStyle = menuPopup.firstChild;  var persistentOnly = noStyle.nextSibling;  var sep = persistentOnly.nextSibling;  while (sep.nextSibling)    menuPopup.removeChild(sep.nextSibling);  var styleSheets = getAllStyleSheets(window.content);  var currentStyleSheets = [];  var styleDisabled = getMarkupDocumentViewer().authorStyleDisabled;  var haveAltSheets = false;  var altStyleSelected = false;  for (var i = 0; i < styleSheets.length; ++i) {    var currentStyleSheet = styleSheets[i];    // Skip any stylesheets that don't match the screen media type.    var media = currentStyleSheet.media.mediaText.toLowerCase();    if (media && (media.indexOf("screen") == -1) && (media.indexOf("all") == -1))        continue;    if (currentStyleSheet.title) {      if (!currentStyleSheet.disabled)        altStyleSelected = true;      haveAltSheets = true;      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 && !styleDisabled);        menuPopup.appendChild(menuItem);        currentStyleSheets[currentStyleSheet.title] = menuItem;      } else {        if (currentStyleSheet.disabled)          lastWithSameTitle.removeAttribute("checked");      }    }  }  noStyle.setAttribute("checked", styleDisabled);  persistentOnly.setAttribute("checked", !altStyleSelected && !styleDisabled);  persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? true : false;  sep.hidden = (noStyle.hidden && persistentOnly.hidden) || !haveAltSheets;  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a45cc0f1c01a5bd49be011d8557cc4d15dfac17a/browser.js/buggy/browser/base/content/browser.js