[Bug]: Pasting URLs into Proton Mail creates invisible link (opacity:0)
Pre-Submission Checklist
- I have checked the existing/closed issues to ensure this issue has not already been reported.
- I am using the latest supported version of Floorp.
- I have tried disabling all browser extensions/add-ons.
- I have reproduced the issue with a new Floorp profile.
- I have provided detailed reproduction steps and the generated HTML.
- I have checked that the problem does not occur in current Firefox.
- This appears specific to Floorp.
Bug Summary
When pasting a URL into the Proton Mail web composer, Floorp sometimes creates an invisible link. The pasted content exists in the DOM, but Floorp/Proton ends up wrapping it in a span with opacity:0 and splitting the URL into multiple nested/duplicated <a> elements.
The same URL pasted into the same Proton Mail composer works correctly in Firefox 156.0.1.
This still reproduces:
- with all extensions disabled;
- with a completely new Floorp profile;
- with
Ctrl+Shift+V/ paste without formatting; - even when the URL is first copied through Windows Notepad.
A workaround is to paste the URL into Proton Mail's Subject field first, copy it again from there, and then paste it into the message body. The resulting HTML is then normal.
Reproduction Steps
- Open Proton Mail web in Floorp 12.18.1.
- Compose a new email.
- Copy a plain URL, for example:
https://x.com/USERNAME/status/STATUS_ID/video/1 - Paste it directly into the message body.
- The pasted URL is invisible.
- Inspect the generated HTML/source.
Actual Behavior
The generated HTML contains an invisible wrapper and malformed/redundant links, for example:
<span style="opacity:0;white-space:pre-wrap;user-select:auto">
<span><span><span><span>
<a href="https://x.com/USERNAME/status/STATUS_ID/video/1"
target="_blank" rel="noopener noreferrer">
…/https://x.com/USERNAME/s
</a>
<a target="_blank" rel="noreferrer nofollow noopener"
href="https://x.com/USERNAME/status/STATUS_ID/video/1">
tatus/STATUS_ID/video/1
</a>
</span></span></span></span>
</span>The important part is the generated style="opacity:0", which makes the pasted link completely invisible.
Expected Behavior
A pasted plain-text URL should be inserted as a normal visible link, e.g.:
<a target="_blank" rel="noreferrer nofollow noopener"
href="https://x.com/USERNAME/status/STATUS_ID/video/1">
https://x.com/USERNAME/status/STATUS_ID/video/1
</a>Firefox Comparison
In Firefox 156.0.1, the same operation works on the first try and produces normal HTML such as:
<div class="protonmail_signature_block-proton">
<span>
<a target="_blank" rel="noreferrer nofollow noopener"
href="https://x.com/USERNAME/status/STATUS_ID">
https://x.com/USERNAME/status/STATUS_ID
</a>
</span>
</div>Additional Diagnostic Detail
Passing the URL through Windows Notepad alone does not fix the issue, which suggests this is not simply rich HTML being carried in the clipboard.
However, this sequence works:
- Copy URL.
- Paste into Proton Mail Subject field.
- Copy it again from the Subject field.
- Paste into the message body.
That produces clean HTML:
<a target="_blank" rel="noreferrer nofollow noopener"
href="https://x.com/USERNAME/status/STATUS_ID/video/1">
https://x.com/USERNAME/status/STATUS_ID/video/1
</a>Browser Version
Floorp 12.18.1 (64-bit)
Comparison browser: Firefox 156.0.1
Operating System
Windows (64-bit)
Source: Floorp-Projects/Floorp