Bug 1044336 - Insert Link by context menu does not work in Thunderbird 31.0 - doesn't show a Paste menu item (original patch by neil), r=mkmelin, a=rkent
authorR Kent James <rkent@caspia.com>
Wed, 18 Mar 2015 16:19:30 -0700
changeset 25812 a53fc94179774762622e57127ab3def7573b7828
parent 25811 1b465328e1a39b17d87cf215accc3662af5c25cc
child 25813 8e04fe92bd1f3c0c00cb83d41954bb297c1b4b08
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, rkent
bugs1044336
Bug 1044336 - Insert Link by context menu does not work in Thunderbird 31.0 - doesn't show a Paste menu item (original patch by neil), r=mkmelin, a=rkent
editor/ui/dialogs/content/EdDialogCommon.js
--- a/editor/ui/dialogs/content/EdDialogCommon.js
+++ b/editor/ui/dialogs/content/EdDialogCommon.js
@@ -950,16 +950,23 @@ function FillLinkMenulist(linkMenulist, 
         return 0;
       });
 
       for (i = 0; i < anchorList.length; i++)
         createMenuItem(menupopup,anchorList[i].anchor);
     }
     else
     {
+      // Don't bother with named anchors in Mail.
+      if (editor && (editor.flags & Components.interfaces.nsIPlaintextEditor.eEditorMailMask))
+      {
+        menupopup.remove();
+        linkMenulist.removeAttribute("enablehistory");
+        return;
+      }
       var item = createMenuItem(menupopup, GetString("NoNamedAnchorsOrHeadings"));
       item.setAttribute("disabled", "true");
     }
   } catch (e) {}
 }
 
 function createMenuItem(aMenuPopup, aLabel)
 {