Remove Theme ->Show Item Contents (including strings) from extension and theme managers. Bug 306182 Theme ->Show Item Contents throws exception (in [nsILocalFile.reveal]). r=bsmedberg, a=asa

This commit is contained in:
rob_strong%exchangecode.com 2005-09-01 20:48:14 +00:00
parent 1c7cc222e3
commit 0c8b33abd6
3 changed files with 2 additions and 21 deletions

View File

@ -42,8 +42,6 @@
<!ENTITY cmd.moveUp.accesskey "p">
<!ENTITY cmd.moveDn.label "Move Down">
<!ENTITY cmd.moveDn.accesskey "w">
<!ENTITY cmd.showFolder.label "Show Item Contents...">
<!ENTITY cmd.showFolder.accesskey "C">
<!-- Extension Items -->
<!ENTITY options.tooltip "Options">

View File

@ -649,11 +649,10 @@ function onThemeSelect(aEvent)
var gExtensionContextMenus = ["menuitem_options", "menuitem_homepage", "menuitem_about",
"menuseparator_1", "menuitem_uninstall", "menuitem_update",
"menuitem_enable", "menuitem_disable", "menuseparator_2",
"menuitem_moveTop", "menuitem_moveUp", "menuitem_moveDn",
"menuseparator_3", "menuitem_showFolder"];
"menuitem_moveTop", "menuitem_moveUp", "menuitem_moveDn"];
var gThemeContextMenus = ["menuitem_useTheme", "menuitem_homepage", "menuitem_about",
"menuseparator_1", "menuitem_uninstall", "menuitem_update",
"menuitem_enable", "menuseparator_3", "menuitem_showFolder"];
"menuitem_enable"];
function buildContextMenu(aEvent)
{
@ -928,9 +927,6 @@ var gExtensionsViewController = {
case "cmd_movedn":
var children = gExtensionsView.children;
return selectedItem && (children[children.length-1] != selectedItem);
case "cmd_showFolder":
return selectedItem &&
opType != OP_NEEDS_INSTALL;
#ifndef MOZ_PHOENIX
case "cmd_install":
return true;
@ -1109,15 +1105,6 @@ var gExtensionsViewController = {
},
cmd_showFolder: function (aSelectedItem)
{
var id = getIDFromResourceURI(aSelectedItem.id);
var installLocation = gExtensionManager.getInstallLocation(id);
var location = installLocation.getItemLocation(id);
if (location instanceof Components.interfaces.nsILocalFile)
location.reveal();
},
cmd_disable: function (aSelectedItem)
{
gExtensionManager.disableItem(getIDFromResourceURI(aSelectedItem.id));

View File

@ -101,7 +101,6 @@
<command id="cmd_moveup"/>
<command id="cmd_movedn"/>
<command id="cmd_useTheme"/>
<command id="cmd_showFolder"/>
</commandset>
<vbox id="contextMenuPalette" hidden="true">
@ -133,9 +132,6 @@
label="&cmd.moveUp.label;" accesskey="&cmd.moveUp.accesskey;"/>
<menuitem id="menuitem_moveDn" command="cmd_movedn"
label="&cmd.moveDn.label;" accesskey="&cmd.moveDn.accesskey;"/>
<menuseparator id="menuseparator_3"/>
<menuitem id="menuitem_showFolder" command="cmd_showFolder"
label="&cmd.showFolder.label;" accesskey="&cmd.showFolder.accesskey;"/>
</vbox>
<popup id="extensionContextMenu" onpopupshowing="return buildContextMenu(event);"/>