Allow "Open Link" from compose editor context menu
Categories
(Thunderbird :: Untriaged, enhancement)
Tracking
(Not tracked)
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:
- Opens the link in the user’s default system browser (or a new tab in the default browser).
- Only appears for actual HTML links (not plain text URLs), preserving safe editing when plain‑text composition is used.
- 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
- 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.
- Should be gated by compose mode: show only when composing in HTML (or when the selection is an HTML anchor).
- No change to how saved drafts or sent messages are rendered; this is a compose‑time convenience only.
- Adopt existing Betterbird implementation codepaths where feasible; the Betterbird maintainer has indicated willingness to have improvements imported into Thunderbird.
- 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 - Provides a long-requested, practical convenience for power and casual users alike.
- Reduces friction and errors when composing messages that include links (e.g., verifying link targets, checking anchors, confirming shortener targets).
- Leverages existing Betterbird-tested behavior to minimize risk.
Suggested patch outline for implementers - In the compose editor context‑menu construction code, detect when the clicked node is an HTML anchor element with an href.
- 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).
- Add a preference (e.g., mail.compose.allow_open_link_in_editor = true) defaulting to true to allow admins/users to disable the behavior.
- 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.
Updated•6 months ago
|
Description
•