New issue
Advanced search Search tips

Issue 859002 link

Starred by 6 users

Issue metadata

Status: Archived
Owner: ----
Closed: Sep 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

mailto links don't spawn web-based email client if href is set after page load

Reported by ben.barn...@brushfiredesign.net, Jun 29 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36

Steps to reproduce the problem:
1. Open Chrome in a Windows OS
2. Associate mailto handlers with web based email client, such as Gmail
3. Click anchor with `mailto:` href set two seconds after page load

What is the expected behavior?
The associated email client should be invoked with the given mailto: parameters. 

What went wrong?
A blank tab is opened with no URI in address bar, the email client does not open when the href is set 2 seconds after page load.

When the href is set immediately (per the test case), the email client is correctly invoked with the given mailto parameters.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.87  Channel: stable
OS Version: 10
Flash Version: N/A

The test case is available on jsfiddle: https://jsfiddle.net/459rnd0m/10/

This works as expected on Linux and OSX systems.
 
mailto.html
1.8 KB View Download
Labels: Needs-Triage-M67
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET Needs-Feedback
Tested this issue on reported chrome version 67.0.3396.87 and latest stable 67.0.3396.99, latest chrome version 69.0.3481.0 and also M-60 using Windows 10. Attaching screen-cast for reference.

Steps: 
---------
1. Launched reported chrome version  
2. Logged into gmail account and Opened new tab and dropped given html file in new tab
3. Navigated both URL's ""mailto href set straight away"" and ""mailto href set after 2 seconds"".
As we are able to see the url and observed outlook popup.

@Reporter: Could you please review the attached screen-cast and confirm if anything being missed here and also Can you please upgrade to latest chrome stable 67.0.3396.99, you can download latest chrome builds here:""https://www.chromium.org/getting-involved/dev-channel"". Let us know whether issue still persists.

Thanks.!
859002.mp4
262 bytes View Download
@phanindra the screencast you have provided doesn't appear to work, and is only 262 bytes?


> "As we are able to see the url and observed outlook popup."
- You should not see an Outlook popup, you should see a new Gmail compose tab opened in the browser.

Project Member

Comment 4 by sheriffbot@chromium.org, Jul 5

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: susan.boorgula@chromium.org
Issue 865081 has been merged into this issue.
Cc: tkent@chromium.org
Labels: Needs-Feedback
NextAction: 2018-08-03
> 2. Associate mailto handlers with web based email client, such as Gmail

How did you do this?

Project Member

Comment 8 by sheriffbot@chromium.org, Jul 20

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Thanks.  I did the navigator.registerProtocolHandler() stuff, and couldn't reproduce this issue. The second link in https://jsfiddle.net/459rnd0m/10/ opened Gmail compose view with "What a 'wonderful' email" and "https://www.test.com".

Did you see any difference of URLs opened by 2 links in https://jsfiddle.net/459rnd0m/10/ ?

Thanks @tkent

On several Windows machines I've tried, the first one opens as expected, but the second link just opens a blank tab in the browser and no compose view is shown. These tests all work absolutely fine on a Mac.

Rather odd!
Project Member

Comment 11 by sheriffbot@chromium.org, Jul 20

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Reporter,

Did you see any difference of URLs opened by 2 links in https://jsfiddle.net/459rnd0m/10/ ?

Have your Chrome installed any Chrome extensions?

"Issue 865081 has been merged into this issue." - can you please unmerge that issue from this ticket as issue seems to be completely (as stated in recent comments) and also reproducible not only on Win as here but on Mac as well. 
We have tried this on a Chrome incognito window, with no extensions, and the same behaviour is shown.

For the first link, the URL is: https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&source=mailto&su=What+a+%E2%80%98wonderful%E2%80%99+email&body=https://www.test.com

For the second link, the URL is: mailto:?subject=What%20a%20%E2%80%98wonderful%E2%80%99%20email&body=https%3A%2F%2Fwww.test.com

This was tested on an incognito window.


Project Member

Comment 15 by sheriffbot@chromium.org, Jul 23

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink>HTML Blink>HTML>CustomHandlers UI>Browser>Navigation
NextAction: ----
Ok, it seems the mailto: URL produced with the second <a href=""> is correct.  So this would be a custom protocol handler issue or a browser navigation issue.

I still can't reproduce this on Windows 10.  I'm not sure if we can investigate this issue furthermore.


Labels: Needs-TestConfirmation
Ok that's helpful. I will try to look deeper into the protocol handler. Thanks very much for looking into it.
Labels: Needs-Feedback
As per comment #18 adding Needs-Feedback label to it and waiting for the response from reporter. 

Thanks..!
Status: Archived (was: Unconfirmed)
Closing no activity issues.
Please feel free to re-open if there is update.

Sign in to add a comment