mailto: links ignore target="_blank"

NEW
Unassigned

Status

()

Firefox
File Handling
7 years ago
2 months ago

People

(Reporter: R Pruitt, Unassigned)

Tracking

17 Branch
x86
Windows 7
Points:
8
Bug Flags:
firefox-backlog +
qe-verify ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0

A mailto: link with attribute target="_blank" opens in the current frame/window.

This is a problem as the current frame/window may not allow Javascript which some web mail handlers(at least Gmail) require.

As an example: the NewsFox extension has this problem with its mailto: of links from a frame where Javascript is not allowed, and can never be allowed according to addon.mozilla.org editors.

Reproducible: Always
(Reporter)

Comment 1

7 years ago
Created attachment 523055 [details]
testcase

Updated

7 years ago
Version: unspecified → 4.0 Branch

Comment 2

6 years ago
I don't think that target="_blank" is the issue here, Firefox should regardless open a new tab on mailto: with mailto handler set to a webmail application in Options > Applications. You can bump up the version number as well, as this is still an issue in Fx7beta.

Comment 3

6 years ago
Created attachment 556605 [details]
mailto links should open in a new tab

Turns out there is another issue here as well, as the page you click the mailto link on will be gone from back-forward history in the tab. Adding an example.

Updated

6 years ago
Attachment #556605 - Attachment mime type: text/plain → text/html

Comment 4

6 years ago
Comment on attachment 556605 [details]
mailto links should open in a new tab

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>

<ol>
<li>Open this page in a new tab to make sure that there is no back-forward history for this tab
<li>Set a webmail provider, eg. gmail, to handle mailto links in Options > Applications
<li>Click this <a href="mailto:test@example.com">mailto link</a>
</ol>

<p>Pass if gmail opens in a new tab</p>

<ol>
<li>If gmail opens in current tab, which is a fail, go back in history to this page using the Back button
<li>click the mailto link above once again
 
<p>Pass if this page is in the back-forward history for this tab after last step</p>

Updated

6 years ago
Attachment #556605 - Attachment is obsolete: true

Comment 5

6 years ago
Created attachment 556612 [details]
mailto links should open in a new tab

Updated

6 years ago
Attachment #556612 - Attachment mime type: text/plain → text/html
(Reporter)

Comment 6

6 years ago
(In reply to heraldo from comment #3)
> Created attachment 556605 [details]
> mailto links should open in a new tab
> 
> Turns out there is another issue here as well, as the page you click the
> mailto link on will be gone from back-forward history in the tab. Adding an
> example.

This is bug#499527.

Comment 7

6 years ago
Thanks R Pruitt, would you be so kind and delete comment nr. 4 for me? I messed up a bit, thought i could edit the attachment directly..

Updated

5 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

5 years ago
OS: Windows XP → Windows 7
Version: 4.0 Branch → 17 Branch

Comment 8

5 years ago
Is this issue expected to be resolved. It seems that target="_blank" should be respected particularly with mailto: links.

Comment 9

4 years ago
This is particularly bad with respect to user experience; most sites use a mailto: in order to allow the user to contact the webmaster. This bug will be seen a lot. One of a designer's goals is to keep the user on the site as long as possible (time is money); in the case of a 404 or another error where there's already a certain level of frustration for the user, this problem compounded by the inability to use history to go back to the site elevates that frustration and can cause visitors to abandon the site.

Hopefully this can be fixed in the near future.

Comment 10

3 years ago
Firefox 30.0 - I can't get it to respect *ANY* "_blank" links - let alone "mailto".

Comment 11

3 years ago
Same problem in FF 31 Mac. mailto link ignores target="_blank" and previous (page with the mailto) is missing from browser history when pressing back button.

Updated

3 years ago
Duplicate of this bug: 1054290

Updated

3 years ago
Flags: qe-verify?
Flags: firefox-backlog+

Updated

3 years ago
Points: --- → 8

Updated

3 years ago
Depends on: 1116478

Comment 13

2 years ago
Voting for a fix.

Comment 14

2 years ago
Voting for a fix too.

Comment 15

2 years ago
Voting for a fix although I think this is a significant issue. Especially after the user sends the email they remain on a blank Gmail page? This effectively kills the opportunity to engage the user any more on our sites.

Comment 16

a year ago
This issue is nerly 5 years old. Opening the link in the same window kills the usage in web-apps.
I'm also voting for a fix. Please!

Comment 17

a year ago
+1

Comment 18

11 months ago
Please do something to fix this bug of _blank mailto links opening in _self tab !!

Comment 19

11 months ago
This is an especially bad bug since it kills history as well. Please fix.

Comment 20

11 months ago
+1

I work on an interactive web app (chat, group annotations, etc).  We are trying to use mailto with target="_blank" to allow people to share an email link to their session, but obviously leaving the webapp to do so is horrible user experience!  I feel like this is a serious issue, and would love a fix.

Comment 21

2 months ago
+1 requesting attention.
Horrible that this bug has existed for 6 years+ and has not been handled. 

Whenever we offer a mailto: link to our visitors, we are making it horrible to click for FF users, of whom there are many in our target audience.
You need to log in before you can comment on or make changes to this bug.