Bug 1498839 - fix context menu for link in RSS feed message header (normal copyPopup context menu instead of copyUrlPopup). r=arshad
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Sun, 14 Oct 2018 15:17:37 +0300
changeset 33368 8539fb6b4605326b58b7f2c5a4b54ed2234baad4
parent 33367 9e7fc0d137ce573eb9d11818dde9d1e3adade04f
child 33369 70bb0f355a9667d7d2e21cfc851ce6d7ba0c02fb
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersarshad
bugs1498839
Bug 1498839 - fix context menu for link in RSS feed message header (normal copyPopup context menu instead of copyUrlPopup). r=arshad
mail/base/content/mailWidgets.js
--- a/mail/base/content/mailWidgets.js
+++ b/mail/base/content/mailWidgets.js
@@ -14,16 +14,17 @@ class MozMailHeaderfield extends MozXULE
   set headerValue(val) {
     return (this.textContent = val);
   }
 }
 
 class MozMailUrlfield extends MozMailHeaderfield {
   connectedCallback() {
     super.connectedCallback();
+    this.setAttribute("context", "copyUrlPopup");
     this.classList.add("text-link", "headerValueUrl");
     this.addEventListener("click", (event) => {
       if (event.button != 2) {
         openUILink(encodeURI(event.target.textContent), event);
       }
     });
   }
 }