return selectedItem.getAttribute("availableUpdateURL") != "none" && 
return selectedItem.hasAttribute("availableUpdateURL") && 
  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 &&             (!gCheckCompat || 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;  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/4bc9171becf5f6974e75f65e6749e8c75ecb79d4/extensions.js/clean/toolkit/mozapps/extensions/content/extensions.js