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

RESOLVED INVALID

Status

()

Firefox
File Handling
--
minor
RESOLVED INVALID
10 years ago
10 years ago

People

(Reporter: Major, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
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"

Comment 1

10 years ago
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
Last Resolved: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.