Bug 1522128 - Fix context sensitive nature of context menu on chat accounts. r=florian
authorPatrick Cloke <clokep@gmail.com>
Wed, 23 Jan 2019 11:26:54 -0500
changeset 33424 043b81dfc262
parent 33423 a33001c055c0
child 33425 a770f9f6ca81
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1522128
Bug 1522128 - Fix context sensitive nature of context menu on chat accounts. r=florian
mail/components/im/content/imAccounts.js
--- a/mail/components/im/content/imAccounts.js
+++ b/mail/components/im/content/imAccounts.js
@@ -355,17 +355,17 @@ var gAccountManager = {
         elt.setAttribute("disabled", "true");
       else
         elt.removeAttribute("disabled");
     }
   },
   onContextMenuShowing() {
     let targetElt = document.popupNode;
     let isAccount = targetElt instanceof Ci.nsIDOMXULSelectControlItemElement;
-    document.querySelector(".im-context-account-item").forEach(e => {
+    document.querySelectorAll(".im-context-account-item").forEach(e => {
       e.hidden = !isAccount;
     });
     if (isAccount) {
       let account = targetElt.account;
       let hiddenItems = {
         connect: !account.disconnected,
         disconnect: account.disconnected || account.disconnecting,
         cancelReconnection: !targetElt.hasAttribute("reconnectPending"),