You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2012/09/06 15:35:08 UTC
[jira] [Created] (CB-1380) Data URIs do not work on iOS
Andrew Grieve created CB-1380:
---------------------------------
Summary: Data URIs do not work on iOS
Key: CB-1380
URL: https://issues.apache.org/jira/browse/CB-1380
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 2.1.0
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Fix For: 2.2.0
The following code should create an iframe that says "asdf":
var frame = document.createElement('iframe');
frame.style.background = 'red';
frame.src = 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E'
document.body.appendChild(frame);
Instead, it gets blocked and a log message shows up:
AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] [Commented] (CB-1380) Data URIs do not work on iOS
Posted by Andrew Grieve <ag...@chromium.org>.
trivial fix, so SGTM. I'll patch it in now.
On Thu, Sep 6, 2012 at 3:29 PM, Shazron Abdullah (JIRA) <ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/CB-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449969#comment-13449969]
>
> Shazron Abdullah commented on CB-1380:
> --------------------------------------
>
> Let's land this for 2.1.0? Android has this fix already.
>
> > Data URIs do not work on iOS
> > ----------------------------
> >
> > Key: CB-1380
> > URL: https://issues.apache.org/jira/browse/CB-1380
> > Project: Apache Cordova
> > Issue Type: Bug
> > Components: iOS
> > Affects Versions: 2.1.0
> > Reporter: Andrew Grieve
> > Assignee: Andrew Grieve
> > Fix For: 2.2.0
> >
> >
> > The following code should create an iframe that says "asdf":
> > var frame = document.createElement('iframe');
> > frame.style.background = 'red';
> > frame.src =
> 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E'
> > document.body.appendChild(frame);
> > Instead, it gets blocked and a log message shows up:
> > AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL
> data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
[jira] [Commented] (CB-1380) Data URIs do not work on iOS
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449969#comment-13449969 ]
Shazron Abdullah commented on CB-1380:
--------------------------------------
Let's land this for 2.1.0? Android has this fix already.
> Data URIs do not work on iOS
> ----------------------------
>
> Key: CB-1380
> URL: https://issues.apache.org/jira/browse/CB-1380
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
> Fix For: 2.2.0
>
>
> The following code should create an iframe that says "asdf":
> var frame = document.createElement('iframe');
> frame.style.background = 'red';
> frame.src = 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E'
> document.body.appendChild(frame);
> Instead, it gets blocked and a log message shows up:
> AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1380) Data URIs do not work on iOS
Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449704#comment-13449704 ]
Michal Mocny commented on CB-1380:
----------------------------------
Trivial fix, assuming we want to allow this:
https://github.com/apache/incubator-cordova-ios/pull/46
> Data URIs do not work on iOS
> ----------------------------
>
> Key: CB-1380
> URL: https://issues.apache.org/jira/browse/CB-1380
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
> Fix For: 2.2.0
>
>
> The following code should create an iframe that says "asdf":
> var frame = document.createElement('iframe');
> frame.style.background = 'red';
> frame.src = 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E'
> document.body.appendChild(frame);
> Instead, it gets blocked and a log message shows up:
> AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1380) Data URIs do not work on iOS
Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-1380.
-------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.2.0)
2.1.0
Patched.
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=ed7e5e44cae4e11a4f9c03cadda92b2b75d299c3
> Data URIs do not work on iOS
> ----------------------------
>
> Key: CB-1380
> URL: https://issues.apache.org/jira/browse/CB-1380
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
> Fix For: 2.1.0
>
>
> The following code should create an iframe that says "asdf":
> var frame = document.createElement('iframe');
> frame.style.background = 'red';
> frame.src = 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E'
> document.body.appendChild(frame);
> Instead, it gets blocked and a log message shows up:
> AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira