rem: selectedItem.isCompatible && 
add: (!gCheckCompat || selectedItem.isCompatible) && 
context:   isCommandEnabled: function (aCommand)  {    var selectedItem = gExtensionsView.selectedItem;    if (!selectedItem)      return false;    if (selectedItem.hasAttribute("downloadURL") &&        selectedItem.getAttribute("downloadURL") != "") {      if (aCommand == "cmd_uninstall")        return true;      return false;    }    switch (aCommand) {    case "cmd_useTheme":      return selectedItem.type == nsIUpdateItem.TYPE_THEME &&             !selectedItem.isDisabled &&             selectedItem.opType != OP_NEEDS_UNINSTALL &&             gCurrentTheme != selectedItem.getAttribute("internalName");    case "cmd_options":      return selectedItem.type == nsIUpdateItem.TYPE_EXTENSION &&             !selectedItem.isDisabled &&             !gInSafeMode &&             !selectedItem.opType &&             selectedItem.getAttribute("optionsURL") != "";    case "cmd_about":      return selectedItem.opType != OP_NEEDS_INSTALL;    case "cmd_homepage":      return selectedItem.getAttribute("homepageURL") != "";    case "cmd_uninstall":      return (selectedItem.type != nsIUpdateItem.TYPE_THEME ||             selectedItem.type == nsIUpdateItem.TYPE_THEME &&             selectedItem.getAttribute("internalName") != gDefaultTheme) &&             selectedItem.opType != OP_NEEDS_UNINSTALL &&             selectedItem.getAttribute("locked") != "true" &&             canWriteToLocation(selectedItem) &&             !gExtensionsView.hasAttribute("update-operation");    case "cmd_cancelUninstall":      return selectedItem.opType == OP_NEEDS_UNINSTALL;    case "cmd_checkUpdate":      return selectedItem.getAttribute("updateable") != "false" &&             !gExtensionsView.hasAttribute("update-operation");    case "cmd_installUpdate":      return selectedItem.getAttribute("availableUpdateURL") != "none" &&             !gExtensionsView.hasAttribute("update-operation");    case "cmd_includeUpdate":      return selectedItem.getAttribute("availableUpdateURL") != "none" &&             !gExtensionsView.hasAttribute("update-operation");    case "cmd_reallyEnable":    // controls whether to show Enable or Disable in extensions' context menu      return selectedItem.isDisabled &&             selectedItem.opType != OP_NEEDS_ENABLE ||             selectedItem.opType == OP_NEEDS_DISABLE;    case "cmd_enable":      return selectedItem.type != nsIUpdateItem.TYPE_THEME &&             (selectedItem.isDisabled ||             (!selectedItem.opType ||             selectedItem.opType == "needs-disable")) &&             !selectedItem.isBlocklisted &&             selectedItem.isCompatible &&             selectedItem.satisfiesDependencies &&             !gExtensionsView.hasAttribute("update-operation");    case "cmd_disable":      return selectedItem.type != nsIUpdateItem.TYPE_THEME &&             (!selectedItem.isDisabled &&             !selectedItem.opType ||             selectedItem.opType == OP_NEEDS_ENABLE) &&             !selectedItem.isBlocklisted &&             selectedItem.satisfiesDependencies &&             !gExtensionsView.hasAttribute("update-operation");    }    return false;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4e97e578bdf80d590259c25a12fd745aedb1ce40/extensions.js/clean/toolkit/mozapps/extensions/content/extensions.js