Famlam / mailto-chromeextension

A Chrome, Opera and Safari extension that handles mailto: links
Other
41 stars 6 forks source link

Javascript function link calling Windows MailTo handler? #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Chrome: 41.0.2278.118
Mailto: 1.28.1 (installed today & rebooted)

http://www.findagrave.com/cgi-bin/fg.cgi?page=mr&MRid=47866238

My email address there is called via a Javascript function, possibly using the 
Windows (XP for me!) default MailTo handler.  As I realize it, thinking now, 
that's probably beyond the scope of your extension.  When I click it in Chrome, 
it calls up MSIE at Hotmail (my windows setting), instead of a new Chrome 
tab/window.

I can use the Context Menu and it works fine.  I assume an actual mailto: 
protocol link would work fine too.  Is there a way to get the Javascript 
function to call your package (that one might coerce a webpage author to use 
instead, if proper of course)?

Barry
Beverly MA USA

p.s. I also wondered if this a similar problem (but on a public webpage) to the 
other person from 2013 at doodle.com.

Original issue reported on code.google.com by arka...@gmail.com on 2 Apr 2015 at 2:14

GoogleCodeExporter commented 9 years ago
Unfortunately this is not possible. Since the mailto protocol isn't a web page 
protocol like http(s) these kind of URLs are not send to the background pages 
of extensions. Therefore the only possibility is to intercept any calls to open 
mailto: urls on the actual web page. Since the script on your web page doesn't 
call a function (window.location = the_url) there is no way to intercept that 
in this extension. Sorry :(. When it becomes possible, I'd love to implement it 
though.

Original comment by fam....@live.nl on 4 Apr 2015 at 1:11