You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/09/16 02:13:35 UTC
[jira] [Assigned] (CB-7560) Tel and Mailto links don't work in
iframe
[ https://issues.apache.org/jira/browse/CB-7560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah reassigned CB-7560:
------------------------------------
Assignee: Shazron Abdullah
> Tel and Mailto links don't work in iframe
> -----------------------------------------
>
> Key: CB-7560
> URL: https://issues.apache.org/jira/browse/CB-7560
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.5.0
> Environment: Tested on iPhone 4s running iOS 7
> Reporter: Nathan Smith
> Assignee: Shazron Abdullah
> Labels: iOS7
>
> Tel and Mailto hyperlinks don't work if contained in an iframe.
> The cause of this issue is this line of code: [GitHub|https://github.com/apache/cordova-ios/commit/7e0a32892a540295e7de5da6a4832dfdaf337ac0?diff=unified#diff-8e93b8e59d39213ac17678c5b7470b3cR206].
> It seems that {noformat}[NSURLConnection canHandleRequest:request]{noformat} returns {{false}} in this case causing the links to not function.
> Example App:
> {code:title=app.html}
> <!DOCTYPE html>
> <html>
> <head>
> <meta charset="utf-8"/>
> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"/>
> </head>
> <body>
> <a href="tel:041245">Top Level Tel</a>
> <a href="mailto:example@example.com">Top Level Mailto</a>
> <iframe src="iframe.html"></iframe>
> <script type="text/javascript" src="cordova.js"></script>
> </body>
> </html>
> {code}
> {code:title=iframe.html}
> <!DOCTYPE html>
> <html>
> <head>
> <meta charset="utf-8"/>
> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"/>
> </head>
> <body>
> <a href="tel:041245">iFrame Tel</a>
> <a href="mailto:example@example.com">iFrame Mailto</a>
> </body>
> </html>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)