Clicking a link with "mailto:xxx" opens an infinite number of tabs.

RESOLVED WORKSFORME

Status

()

Firefox
File Handling
--
critical
RESOLVED WORKSFORME
9 years ago
2 months ago

People

(Reporter: Donna Fitzgerald, Unassigned, NeedInfo)

Tracking

(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13

This has happened with multiple websites, including those I am running from my local machine.  

The link is to "mailto:xxxx".  It should attempt to open the default mail server. Instead, it is opening multiple tabs over and over again.  I closed the browser, and it opened itself back up.  I had to force quit Firefox to terminate the problem.

Reproducible: Always

Steps to Reproduce:
1. Create an html file with <a href="mailto:someaddress@xxx.com">Email us</a>
2. Click the link.
Actual Results:  
Many, many tabs opened up and paraded across the browser screen.  I had to force quit Firefox to some the process.

Expected Results:  
Mailto links should open the default email server.  If no email server is established, it should present a message box to that effect.

I'm a user of Firefox, not a developer.  I actually work on mainframes.  The problem is annoying, but is probably restricted to the Mac version I am running.  I don't think I have a default mail server setup anywhere on the system, but I'm not sure.  I use Internet mail exclusively.
Hi, 

please try to reproduce the issue in the http://support.mozilla.com/en-US/kb/Safe%20Mode (Firefox Safe Mode).
(Reporter)

Comment 2

9 years ago
I really don't know how to do all of this.  I'm just trying to do my work and noticed that something happened.
(In reply to comment #2)
> I really don't know how to do all of this.  I'm just trying to do my work and
> noticed that something happened.
Please follow the steps here:
http://support.mozilla.com/en-US/kb/Safe%20Mode#How_to_start_Firefox_in_Safe_Mode

Otherwise start a support request in the forums: http://support.mozilla.com/forum
Please open Tools/options/applications, do you see mailto registered there and is it set to Firefox ?
(Reporter)

Comment 5

9 years ago
I'm on a Mac, so I actually had to open Firefox / Preferences / Applications.

mailto:  was registered to "Use (default)".

I changed it to Yahoo! mail, and now the infinite loop disappears.

However, I've been using Firefox on this machine for 18 months, and only with the last ? upgrades has this been an issue. 

My problem is solved, but I still think there is a bug in using the default mail server.

Thanks for your help.
Component: General → File Handling
QA Contact: general → file.handling

Comment 6

8 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4

Sorry to intrude. I found an evil, crasher URL that opens zillions of mailto:xxx on Windows, Firefox 3.6.4. I think it might be related to this bug.

In my case, the URLs in question opened multiple "Create New Message" windows in Thunderbird 3.04 and Firefox popups too. I had to kill all the Firefox and Thunderbird processes. If restore session is active, this could cause a really big annoyance.

Description of the issue: http://www.symbianize.com/archive/index.php/t-154935.html <- Safe

------

"
I stumbled across this URL while surfing the internet. This is a javascript "exploit" (that still works, by the way) and will hang/crash your system. It basically floods you with an infinite loop of mailto:xxx windows. To cancel this (and you have to move fast) kill the process of your email client before you run out of RAM.


WARNING: CLICKING MAY CAUSE A CRASH! USE AT YOUR OWN RISK!

h__p://tiny.cc/ibJUN [<- redirection URL, opens thousands of mailto: and popups]
"

-----

h__p://ha.ckers.org/weird/popup.html <- The actual evil URL, opens thousands of mailto: and popups
a loop with mailto: and other external protocol handlers is not this bug, it's different and known since 8+years.

Comment 8

8 years ago
Matti, so this is a dup of bug 194210?
Severity: normal → critical
I'm not sure, Firefox supports mailto: in the meantime.
There are more reports about this problem on OS X.Resetting the mail handler always fixes this

Updated

7 years ago
Duplicate of this bug: 607288

Updated

6 years ago
Depends on: 194210

Comment 11

6 years ago
(In reply to Matthias Versen (Matti) from comment #9)
> I'm not sure, Firefox supports mailto: in the meantime.
> There are more reports about this problem on OS X.Resetting the mail handler
> always fixes this

Matti, bug 570600 is another. but are you still seeing more recent reports?  I haven't looked since I duped bug 607288.

Also, bug 194210 has no dupes or recent activity
I didn't see recent reports about this issue

Comment 13

6 years ago
Christophe reports not seeing this in a long time
marking wfm
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME

Comment 15

4 years ago
This issue still occurs in Firefox 30.0, if "mailto" is in Applications associated with KMail. (Not even sure I have KMail installed). It somehow redirects to firefox, which in turn calls the command again and again.

Changing the application to use Gmail solves it.

So, not strictly a firefox bug, just a lack of some protection mechanism. Perhaps firefox could track calls to mailto and if it detects such recursion, stop the madness?

Comment 16

2 years ago
Bug still exists after almost 2 years.

A manual fix (although Mozilla really should fix this themselves):

Disable mailto: links entirely by going to about:config and setting "network.protocol-handler.external.mailto" to FALSE (just double-click it). That should stop it from happening.

Comment 17

2 years ago
Is this issue still fixed? Disabling mailto from about:config is not the proper solution as thousands of users are using the application containing mailTo as a link. Also disabling mailto do not always work. So please let me know if there is any patch present for this or a workaround using JavaScript?
Flags: needinfo?(bansalyuvraj89)

Comment 18

a year ago
I am still experiencing the exact same problem as Donna Fitzgerald reported 8 years ago. On a Mac OS/X my mailto is linked to gmail. On various websites it causes an infinite number of new tabs to open en Firefox to stop operating. Disabling mailto cannot be the solution for this bug.

Comment 19

a year ago
I am experiencing something similar:
When I click on the links inside my emails in Thunderbird, nothing visible happens, but the server in the link gets flooded with tens of requests per second, for hours. I have been contacted by some of these administrators to fix the issue. Until then, clicking on links is a no-no for me. I am using Linux and Firefox as browser, as well. 
Any ideas ?
I'm facing the same issue as reported in comment #18. Clicking on mailto links opens an infinite number of tabs. Closing the window is the only way to stop it. I can confirm this happens on Firefox 59 (Windows 10 and Ubuntu 16.04).

Comment 21

2 months ago
I stopped using firefox because of this issue. see these tweets https://twitter.com/jitendravyas/status/983052794574893056

I was using latest version of Firefox on Mac.
You need to log in before you can comment on or make changes to this bug.