mailto links do not work within subframes when handled by gmail |
||||||
Issue descriptionChrome Version: 54.0.2840.101 (64-bit) OS: ChromeOS (Platform 8743.85.0, Firmware Google_Chell.7820.158.0) To reproduce the problem: 1) Navigate to http://alexmos17.github.io/tests/mailto.html 2) Click on the mailto link in the subframe. The expected result: Gmail is opened in a new tab, with a window created for a new email draft to the recipient corresponding to the mailto link. Instead: The link disappears, no new tab or window is created, and an error is logged to the console, stating that the page refused to render because mail.google.com has set 'X-Frame-Options' to 'SAMEORIGIN'. Basically, it seems that it tries to load gmail within the iframe instead of opening it up in a new tab similar to how other mailto links are handled in ChromeOS. Note that right-clicking and opening the link in a new tab still works as expected. It is also worth noting that even normal mailto links don't seem to work as expected. Rather than opening gmail in a new tab, they navigate the current page to gmail. This may want to be reconsidered. The issue involving subframes would be resolved by default if mailto links opened in a new tab.
,
Dec 15 2016
+benwells as OWNER of chrome/browser/custom_handlers This behavior seems to be a consequence of the design decision wherein custom handlers are implemented via a net::URLRequestJobFactory that generates redirects from "mailto:" navigations to the registered https gmail URL. I'm not sure that's the right design here, given that URL requests are not always for top-level navigations. Note that right clicking on the mailto: link in the subframe, and selecting "open with ... mail.google.com" seems to properly handle this in a new tab.
,
Dec 15 2016
Can you suggest an alternative design that would fix the problem? We don't really do much work on custom handlers, the design has largely been unchanged for about five years, but if there are simple changes we could make to fix this we could look into it.
,
Dec 16 2016
Just came across another old, but possibly related mailto-in-subframes bug: issue 306349 .
,
Feb 16 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Feb 21 2018
Hmm, I'm not sure what the expected behavior is, but I don't see gmail handling even the link in the main frame. Removing Hotlist-Recharge-Cold, so we can investigate more.
,
Jun 1 2018
Issue 137687 has been merged into this issue. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by nick@chromium.org
, Dec 15 2016