From 528a32fc3c88fd7ef6b78688d4feec50f0866713 Mon Sep 17 00:00:00 2001 From: Richard Marti Date: Tue, 13 Sep 2022 22:20:12 +0000 Subject: [PATCH] Bug 1790636 - Remove the Go menu item in the new App Menu. r=aleca Differential Revision: https://phabricator.services.mozilla.com/D157223 --HG-- extra : moz-landing-system : lando --- calendar/base/content/calendar-views-utils.js | 2 - mail/base/content/hiddenWindowMac.js | 10 -- mail/base/content/messageWindow.js | 31 +--- .../customizableui/content/panelUI.inc.xhtml | 166 ------------------ .../customizableui/content/panelUI.js | 4 - mail/components/im/content/chat-messenger.js | 2 - 6 files changed, 2 insertions(+), 213 deletions(-) diff --git a/calendar/base/content/calendar-views-utils.js b/calendar/base/content/calendar-views-utils.js index 8d2c427a2a..373cdc8381 100644 --- a/calendar/base/content/calendar-views-utils.js +++ b/calendar/base/content/calendar-views-utils.js @@ -250,8 +250,6 @@ function switchToView(viewType) { "calendar-view-context-menu-previous", "calendar-go-menu-next", "calendar-go-menu-previous", - "appmenu_calendar-go-menu-next", - "appmenu_calendar-go-menu-previous", ]; ids.forEach(x => { setupViewNode(x, "label"); diff --git a/mail/base/content/hiddenWindowMac.js b/mail/base/content/hiddenWindowMac.js index 9a40f81687..601a608dbb 100644 --- a/mail/base/content/hiddenWindowMac.js +++ b/mail/base/content/hiddenWindowMac.js @@ -95,7 +95,6 @@ function hiddenWindowStartup() { "appmenu_saveAsFile", "appmenu_newVirtualFolder", "appmenu_viewBodyMenu", - "appmenu_goNextMenu", "appmenu_findAgainCmd", "appmenu_sendUnsentMsgs", "appmenu_charsetRepairMenuitem", @@ -118,15 +117,6 @@ function hiddenWindowStartup() { "appmenu_viewHeadersMenu", "appmenu_find", "appmenu_viewAttachmentsInlineMenuitem", - "appmenu_nextMsg", - "appmenu_nextUnreadMsg", - "appmenu_nextUnreadThread", - "appmenu_goPreviousMenu", - "appmenu_prevMsg", - "appmenu_prevUnreadMsg", - "appmenu_goForward", - "appmenu_goBack", - "appmenu_goStartPage", "appmenu_viewFullZoomMenu", "appmenu_openMessageWindowMenuitem", ]; diff --git a/mail/base/content/messageWindow.js b/mail/base/content/messageWindow.js index 2e99d11980..fc010c92a5 100644 --- a/mail/base/content/messageWindow.js +++ b/mail/base/content/messageWindow.js @@ -850,12 +850,7 @@ function HideMenus() { fileMenuAfterCompactSeparator.setAttribute("hidden", "true"); } - var goStartPageSeparator = document.getElementById("goNextSeparator"); - if (goStartPageSeparator) { - goStartPageSeparator.hidden = true; - } - - goStartPageSeparator = document.getElementById("appmenu_goNextSeparator"); + let goStartPageSeparator = document.getElementById("goNextSeparator"); if (goStartPageSeparator) { goStartPageSeparator.hidden = true; } @@ -867,39 +862,17 @@ function HideMenus() { goRecentlyClosedTabsSeparator.setAttribute("hidden", "true"); } - goRecentlyClosedTabsSeparator = document.getElementById( - "appmenu_goRecentlyClosedTabsSeparator" - ); - if (goRecentlyClosedTabsSeparator) { - goRecentlyClosedTabsSeparator.setAttribute("hidden", "true"); - } - let goFolder = document.getElementById("goFolderMenu"); if (goFolder) { goFolder.hidden = true; } - goFolder = document.getElementById("appmenu_goFolderMenu"); - if (goFolder) { - goFolder.hidden = true; - } - goFolder = document.getElementById("goFolderSeparator"); if (goFolder) { goFolder.hidden = true; } - goFolder = document.getElementById("appmenu_goFolderSeparator"); - if (goFolder) { - goFolder.hidden = true; - } - - var goStartPage = document.getElementById("goStartPage"); - if (goStartPage) { - goStartPage.hidden = true; - } - - goStartPage = document.getElementById("appmenu_goStartPage"); + let goStartPage = document.getElementById("goStartPage"); if (goStartPage) { goStartPage.hidden = true; } diff --git a/mail/components/customizableui/content/panelUI.inc.xhtml b/mail/components/customizableui/content/panelUI.inc.xhtml index 1f9ccf5137..e7a2043199 100644 --- a/mail/components/customizableui/content/panelUI.inc.xhtml +++ b/mail/components/customizableui/content/panelUI.inc.xhtml @@ -110,11 +110,6 @@ label="&fileMenu.label;" closemenu="none" oncommand="PanelUI.showSubView('appMenu-fileView', this)"/> - - - - - - - - - -#ifdef MAIN_WINDOW - -#endif - - - - - - - - - - - - - - - - - - -#ifdef MAIN_WINDOW - - - -#endif - - - - - - - - - -#ifdef MAIN_WINDOW - - - -#endif - - - - - - - - - - - - -