Last Comment Bug 646552 - mailto: links ignore target="_blank"
: mailto: links ignore target="_blank"
Status: NEW
:
Product: Firefox
Classification: Client Software
Component: File Handling (show other bugs)
: 17 Branch
: x86 Windows 7
: -- normal with 19 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
: 1054290 (view as bug list)
Depends on: 1116478
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-30 10:56 PDT by R Pruitt
Modified: 2016-06-09 06:00 PDT (History)
17 users (show)
mmucci: firefox‑backlog+
mmucci: qe‑verify?
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: 8
Has Regression Range: ---
Has STR: ---


Attachments
testcase (108 bytes, text/html)
2011-03-30 10:59 PDT, R Pruitt
no flags Details
mailto links should open in a new tab (512 bytes, text/html)
2011-08-29 10:43 PDT, heraldo
no flags Details
mailto links should open in a new tab (649 bytes, text/html)
2011-08-29 10:57 PDT, heraldo
no flags Details

Description R Pruitt 2011-03-30 10:56:42 PDT
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
Comment 1 R Pruitt 2011-03-30 10:59:16 PDT
Created attachment 523055 [details]
testcase
Comment 2 heraldo 2011-08-29 06:56:26 PDT
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 heraldo 2011-08-29 10:43:29 PDT
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.
Comment 4 heraldo 2011-08-29 10:53:30 PDT
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>
Comment 5 heraldo 2011-08-29 10:57:47 PDT
Created attachment 556612 [details]
mailto links should open in a new tab
Comment 6 R Pruitt 2011-08-29 11:43:18 PDT
(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 heraldo 2011-08-29 11:53:02 PDT
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..
Comment 8 Johnny J Hernandez 2013-03-26 11:53:49 PDT
Is this issue expected to be resolved. It seems that target="_blank" should be respected particularly with mailto: links.
Comment 9 carwellos 2013-07-04 09:49:55 PDT
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 Adam Banks 2014-06-12 19:05:12 PDT
Firefox 30.0 - I can't get it to respect *ANY* "_blank" links - let alone "mailto".
Comment 11 nicholas.jakobsen 2014-08-06 22:49:00 PDT
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.
Comment 12 YF (Yang) 2014-09-08 07:56:31 PDT
*** Bug 1054290 has been marked as a duplicate of this bug. ***
Comment 13 Dan Dascalescu 2015-07-14 18:27:25 PDT
Voting for a fix.
Comment 14 gael.abadin 2015-12-07 03:59:09 PST
Voting for a fix too.
Comment 15 Jerry Hall 2016-02-05 17:47:01 PST
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 simonfranz85 2016-03-24 07:40:40 PDT
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 Jörn Berkefeld 2016-06-09 06:00:27 PDT
+1

Note You need to log in before you can comment on or make changes to this bug.