mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
1c7cc222e3
commit
0c8b33abd6
@ -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">
|
||||
|
@ -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));
|
||||
|
@ -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);"/>
|
||||
|
Loading…
Reference in New Issue
Block a user