Closed Bug 315893 Opened 19 years ago Closed 16 years ago

On trying to open a malito: link through JavaScript, get an error

Categories

(Firefox :: General, defect)

1.0 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: elk, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 On trying to open a malito: link through JavaScript function window.location.href = "mailto:User@Domaine"; get error message "mailto is not a registered protocoll" and an error in the javaScript console Reproducible: Always Steps to Reproduce: 1. create a HTML file with following content: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>test mail</title> <script type="text/javascript" language="javascript"> <!-- function PostTo(User, Domaine) { window.location.href = "mailto:" + User + "@" + Domaine; }; //--> </script> </head> <body> <a href="javascript:PostTo('info','nowhere.org')">mail link using JavaScript</a><br> <a href="mailto:info@nowhere.org">mail link using mailto:</a> </body> </html> 2. Open it in Firefox 3. Click on the first link Actual Results: get error message "mailto is not a registered protocoll" and the following in the javaScript console Error: uncaught exception: [Exception... "Component returned failure code: 0x804b0012 [nsIDOMLocation.href]" nsresult: "0x804b0012 (<unknown>)" location: "JS frame :: file://localhost/thepath/WWW/test-mail.html :: PostTo :: line 11" data: no] Expected Results: should have opened the mail programm, as it does on clicking the second link. Following extensions installed: Forecastfox 0.8.2.1, View dormatted source 0.9.3.4, Html validator (based on Tidy) 0.6.2
the problem does not appear on Firefox 1.0.7 / Windows 2000
Version: unspecified → 1.0 Branch
1. The bug stayed upon deinstallation of all extensions 2. The bug wasn't reproduced on a system with a similar configuration (Firefox 1.0.7 / MacOS X 10.3
Please use a recent version of Firefox, available at http://www.mozilla.com/en-US/firefox/, and report back with your results in relation to this bug report. If this problem can be reproduced, please reopen this bug report. Due to age/lack of response, closing. (bug cleaning)
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.