mailto: link with target="_blank" opens new superfluous tab (as well as compose window)
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: pablo, Unassigned)
Details
Attachments
(1 file)
5.61 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
Steps to reproduce:
I confirmed the issue in /Safe Mode/
Steps to reproduce:
- Compose new HTML mail message addressed to self
- Subject: plugh
- Body: Insert > HTML ...
<a target="_blank" href="mailto:someone@example.com">Click me. I double-dare you!</a>
<br>
<br>
<a href="mailto:someone@example.com">Hello world, I am happy!</a>
- Send
- Grab a tasty beverage
- Read the sent message
- Click on the mailto link
Actual results:
When I click the first mailto link, I get a new TBird tab with a title of "Loading ..." It is blank. I also get a new compose window properly created.
Contrast the above behavior with clicking the second link: no blank tab is created.
Expected results:
The blank TBird tab should not appear.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Doesn't the use of '<a target="_blank" href="mailto:someone@example.com">Click me. I double-dare you!</a>' tell the browser to open a new window or tab when that link is clicked?
REF: When to use target="_blank"
Thunderbird is built on a browser platform AIUI.
I see the same behavior and think it is behaving properly.
You are telling it to open a blank tab, and the mailto opens the compose window as it should.
Literally, yes you're correct. However in the context of an MUA, it doesn't quite make sense.
If you do the same test in Chrome+Gmail, you only get a compose window. No blank tab.
Comment 3•6 years ago
|
||
I did the test using Thunderbird 68.1.2 and 71.0a1 on Linux and Windows 10 and can reproduce the problem. I'll presume it also happens on a Mac.
Why do you need the '-_blank' attribute in your emails?
(In reply to WaltS48 [:walts48] from comment #3)
I did the test using Thunderbird 68.1.2 and 71.0a1 on Linux and Windows 10 and can reproduce the problem. I'll presume it also happens on a Mac.
The original user who reported it is on a Mac. He was on some ancient version of TBird though. IIRC, 55.x
Why do you need the '_blank' attribute in your emails?
This is a Digest email generated by Groups.io - see www.groups.io
it sounds to me like the link is malformed, although if we ever get to the point of compose in a tab, a _blank target would be implicit, so perhaps we need to ignore any target tags in mailto links.
While it is a more recent bug I am going to dup this to Bug 1677248 because it appears to be getting some traction.
Description
•