diff --git a/calendar/lightning/content/lightning-item-panel.xul b/calendar/lightning/content/lightning-item-panel.xul index f3814639b2..b0cbd9a30c 100644 --- a/calendar/lightning/content/lightning-item-panel.xul +++ b/calendar/lightning/content/lightning-item-panel.xul @@ -128,7 +128,7 @@ defaultlabelalign="end"> - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mail/base/content/customElements.js b/mail/base/content/customElements.js index c65450c296..0be7ee0bb4 100644 --- a/mail/base/content/customElements.js +++ b/mail/base/content/customElements.js @@ -19,6 +19,7 @@ if (!isDummyDocument) { "chrome://messenger/content/foldersummary.js", "chrome://messenger/content/addressbook/menulist-addrbooks.js", "chrome://messenger/content/toolbarbutton-menu-button.js", + "chrome://messenger/content/toolbarbutton-appmenu.js", ]) { Services.scriptloader.loadSubScript(script, window); } diff --git a/mail/base/content/mailWidgets.xml b/mail/base/content/mailWidgets.xml index 0382f0b4d6..09d9965916 100644 --- a/mail/base/content/mailWidgets.xml +++ b/mail/base/content/mailWidgets.xml @@ -202,33 +202,4 @@ ]]> - - - - - - - - - - - - - - diff --git a/mail/base/content/mainMailToolbox.inc.xul b/mail/base/content/mainMailToolbox.inc.xul index ea60e752cd..c35b86f31e 100644 --- a/mail/base/content/mainMailToolbox.inc.xul +++ b/mail/base/content/mainMailToolbox.inc.xul @@ -314,7 +314,7 @@ label="&stopButton.label;" tooltiptext="&stopButton.tooltip;" command="cmd_stop"/> - { + if (event.button != 0) { + return; + } + this._setupAppmenu(event); + }); + + this.addEventListener("keypress", (event) => { + this._setupAppmenu(event); } + ); + } + + _setupAppmenu(event) { + if (event.target == this) { + let appmenuPopup = document.getElementById("appmenu-popup"); + if (this.lastChild != appmenuPopup) { + this.appendChild(appmenuPopup); + } + } + } + } + customElements.define("toolbarbutton-appmenu", + MozToolbarButtonAppmenu, { extends: "toolbarbutton" } + ); +} diff --git a/mail/base/jar.mn b/mail/base/jar.mn index 05da855179..10427188d3 100644 --- a/mail/base/jar.mn +++ b/mail/base/jar.mn @@ -30,6 +30,7 @@ messenger.jar: content/messenger/mailWidgets.js (content/mailWidgets.js) content/messenger/button-menu-button.js (content/button-menu-button.js) content/messenger/toolbarbutton-menu-button.js (content/toolbarbutton-menu-button.js) + content/messenger/toolbarbutton-appmenu.js (content/toolbarbutton-appmenu.js) content/messenger/customElements.js (content/customElements.js) content/messenger/customizeToolbar.css (../../common/src/customizeToolbar.css) content/messenger/customizeToolbar.js (../../common/src/customizeToolbar.js) @@ -37,7 +38,6 @@ messenger.jar: content/messenger/viewSource.js (../../common/src/viewSource.js) * content/messenger/viewSource.xul (../../common/src/viewSource.xul) content/messenger/viewZoomOverlay.js (../../common/src/viewZoomOverlay.js) - content/messenger/generalBindings.xml (../../common/bindings/generalBindings.xml) content/messenger/generalBindings.js (../../common/bindings/generalBindings.js) content/messenger/richlistbox.xml (../../common/bindings/richlistbox.xml) * content/messenger/toolbar.xml (../../common/bindings/toolbar.xml) diff --git a/mail/components/im/content/chat-messenger.inc.xul b/mail/components/im/content/chat-messenger.inc.xul index 75b47e7f48..39f4f534c4 100644 --- a/mail/components/im/content/chat-messenger.inc.xul +++ b/mail/components/im/content/chat-messenger.inc.xul @@ -84,7 +84,7 @@ - toolbar[mode="full"] deck .toolbarbutton-text { text-align: start; } -.toolbarbutton-1[type="menu"] { - -moz-binding: url("chrome://messenger/content/generalBindings.xml#menu-vertical"); -} - -toolbox[labelalign="end"] > toolbar[mode="full"] .toolbarbutton-1[type="menu"] { - -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"); -} - description.error { color: #f00; }