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/08/27 07:41:58 UTC
[jira] [Resolved] (CB-7379) Can't use iframe srcdoc attribute on
iOS
[ https://issues.apache.org/jira/browse/CB-7379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-7379.
----------------------------------
Resolution: Won't Fix
Assignee: Shazron Abdullah
Special case it in your MainViewController.m, add this code:
{code}
- (BOOL)webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
NSURL* url = [request URL];
if ([[url scheme] isEqualToString:@"about"]) {
return YES;
} else {
return [super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType];
}
}
{code}
> Can't use iframe srcdoc attribute on iOS
> ----------------------------------------
>
> Key: CB-7379
> URL: https://issues.apache.org/jira/browse/CB-7379
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Shota Nozaki
> Assignee: Shazron Abdullah
> Priority: Minor
>
> The url of iframe srcdoc is "about:srcdoc".
> But "about" scheme is forbidden by the following code.
> [*CDVViewController.m:734*|https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=blob;f=CordovaLib/Classes/CDVViewController.m;h=66c1850fe56c79439ae35b8fd6788098044ce65c;hb=HEAD#l734]
> {noformat}
> /*
> * all about: scheme urls are not handled
> */
> else if ([[url scheme] isEqualToString:@"about"]) {
> return NO;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)