rem:  var navbundle = document.getElementById("bundle_navigator"); var showSkinsDescription = navbundle.getString("showskinsdescription"); if (showSkinsDescription == "false") { gShowDescription = false; var description = document.getElementById("description"); while (description.hasChildNodes()) description.removeChild(description.firstChild); } 
context: function Startup(){  gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-themes.xul"].userData;  var list = document.getElementById( "skinsList" );  if ("loaded" in gData && "themeIndex" in gData) {    list.selectedIndex = gData.themeIndex;        removeInvalidThemes();    return;  }  gData.loaded = true;  parent.hPrefWindow.registerOKCallbackFunc(applyTheme);  var theme = null;  try {    theme = gPrefSvc.getComplexValue("general.skins.selectedSkin",                                     Components.interfaces.nsISupportsString).data;  } catch (e) {  }  var matches;  for (var i = 0; i < list.childNodes.length; ++i) {    var child = list.childNodes[i];    var name = child.getAttribute("name");    if (!theme)      matches = chromeRegistry.isSkinSelectedForPackage(name, "browser", true);    else      matches = name == theme;    if (matches) {      list.selectItem(child);      break;    }        }  removeInvalidThemes();    var navbundle = document.getElementById("bundle_navigator");  var showSkinsDescription = navbundle.getString("showskinsdescription");  if (showSkinsDescription == "false")  {    gShowDescription = false;    var description = document.getElementById("description");    while (description.hasChildNodes())      description.removeChild(description.firstChild);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1e43f74565157b7d6d06251b4d816869299d5c91/pref-themes.js/buggy/browser/components/prefwindow/content/pref-themes.js