Closed Bug 2040546 Opened 6 months ago Closed 6 months ago

Allow "Open Link" from compose editor context menu

Categories

(Thunderbird :: Untriaged, enhancement)

Thunderbird 140
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 695142

People

(Reporter: ted, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0

Steps to reproduce:

I switched from Betterbird to Thunderbird and immediately noticed that I had lost the ability to test links in an email with many hyperlinks by simply rightclicking on each one and selecting "Open in Browser" from the context menu. This is a very valuable feature for some users who need to include a significant number of links in emails to groups.

Actual results:

Currently the compose editor renders HTML links visually (underline/formatting) but does not let users open them from the live compose view; links become clickable only after saving or sending. That forces awkward workarounds (save draft, copy/paste into a browser, compose externally) and breaks straightforward workflows for users who need to verify links during composition.

Expected results:

When the compose editor contains an HTML link, right‑clicking the linked text should show an “Open Link” (or “Open Link in Browser”) entry that:

  1. Opens the link in the user’s default system browser (or a new tab in the default browser).
  2. Only appears for actual HTML links (not plain text URLs), preserving safe editing when plain‑text composition is used.
  3. Respects the compose editor’s security model: do not load remote content into the compose editor itself; only hand off the URL to the external browser.

Design notes and compatibility

  1. Implement as a compose‑editor context‑menu item, not as a change to editor internals that would auto‑activate links while editing. This keeps the editor editable while providing a safe, explicit action to open links.
  2. Should be gated by compose mode: show only when composing in HTML (or when the selection is an HTML anchor).
  3. No change to how saved drafts or sent messages are rendered; this is a compose‑time convenience only.
  4. Adopt existing Betterbird implementation codepaths where feasible; the Betterbird maintainer has indicated willingness to have improvements imported into Thunderbird.
  5. Ensure the implementation is privacy‑ and security‑conscious: do not expose internal profile paths or attachments; only open external URLs as-is and warn/confirm if a link uses potentially dangerous schemes (file:, javascript:).
    Benefits
  6. Provides a long-requested, practical convenience for power and casual users alike.
  7. Reduces friction and errors when composing messages that include links (e.g., verifying link targets, checking anchors, confirming shortener targets).
  8. Leverages existing Betterbird-tested behavior to minimize risk.
    Suggested patch outline for implementers
  9. In the compose editor context‑menu construction code, detect when the clicked node is an HTML anchor element with an href.
  10. Append an “Open Link” menu item that calls the same browser‑launch utility used elsewhere in Thunderbird (ensuring platform defaults and user preferences are respected).
  11. Add a preference (e.g., mail.compose.allow_open_link_in_editor = true) defaulting to true to allow admins/users to disable the behavior.
  12. Add unit/integration tests: context‑menu shows item only for anchors, action invokes browser, respects pref and compose mode.

Thank you for giving this request your consideration. I would prefer to use Thunderbird but the lack of this feature is making it difficult.

Status: UNCONFIRMED → RESOLVED
Closed: 6 months ago
Duplicate of bug: 695142
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.