rem: var selectedItem = gExtensionsView.selected; 
add: var selectedItem = gExtensionsView.selectedItem; 
context: function buildContextMenu(aEvent){  if (aEvent.target.id != "extensionContextMenu")    return false;      var popup = document.getElementById("extensionContextMenu");  while (popup.hasChildNodes())    popup.removeChild(popup.firstChild);  var isExtensions = gWindowState == "extensions";  var menus = isExtensions ? gExtensionContextMenus : gThemeContextMenus;    for (var i = 0; i < menus.length; ++i) {    var clonedMenu = document.getElementById(menus[i]).cloneNode(true);    clonedMenu.id = clonedMenu.id + "_clone";    popup.appendChild(clonedMenu);  }  var extensionsStrings = document.getElementById("extensionsStrings");  var menuitem_about = document.getElementById("menuitem_about_clone");  var selectedItem = gExtensionsView.selected;  var name = selectedItem ? selectedItem.getAttribute("name") : "";  menuitem_about.setAttribute("label", extensionsStrings.getFormattedString("aboutExtension", [name]));    if (isExtensions) {    var canEnable = gExtensionsViewController.isCommandEnabled("cmd_reallyEnable");    var menuitemToShow, menuitemToHide;    if (canEnable) {      menuitemToShow = document.getElementById("menuitem_enable_clone");      menuitemToHide = document.getElementById("menuitem_disable_clone");    }    else {      menuitemToShow = document.getElementById("menuitem_disable_clone");      menuitemToHide = document.getElementById("menuitem_enable_clone");    }    menuitemToShow.hidden = false;    menuitemToHide.hidden = true;  }  else {    var enableMenu = document.getElementById("menuitem_enable_clone");    if (gExtensionsView.selected.getAttribute("compatible") == "false" ||        gExtensionsView.selected.disabled)       // don't let the user activate incompatible themes, but show a (disabled) Enable      // menuitem to give visual feedback; it's disabled because cmd_enable returns false      enableMenu.hidden = false;    else {      enableMenu.hidden = true;    }  }      return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/148f27f947c26f83d75c5ad5c64f1169df23316b/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js