Closed Bug 440203 Opened 16 years ago Closed 16 years ago

Mailto: URL handling; Javascript registerProtocolHandler doesn't strip the "mailto:"

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: draco18s2, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0

Fortunately I was able to set up FF 3 to handle mailto links to open a page IN FireFox (opposed to IE) using by typing into the URL bar:

javascript:window.navigator.registerProtocolHandler("mailto","http://bl116w.blu116.mail.live.com/mail/EditMessageLight.aspx?n=584168459&To=%s","Hotmail")

The unfortunate side effect is that upon loading the Mail Edit window the "mailto:" component of the link was not stripped and Hotmail will not send an email without that being removed.  I have so far been unable to find any other method besides a direct copying of the email address and going into a new message and pasting it.

Reproducible: Always

Steps to Reproduce:
1.javascript:window.navigator.registerProtocolHandler("mailto","http://bl116w.blu116.mail.live.com/mail/EditMessageLight.aspx?n=584168459&To=%s","Hotmail")
2.Add application
3.Click an email link on a webpage
Actual Results:  
To: line of the email message contains "mailto:xyz@abc.com"

Expected Results:  
To: line of the email message contains "xyz@abc.com"
It's not supposed to; see the WhatWG spec for details.  Hotmail is not currently set up to act as a mailto: protocol handler.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.