incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <>
Subject [jira] [Created] (CB-1380) Data URIs do not work on iOS
Date Thu, 06 Sep 2012 13:35:08 GMT
Andrew Grieve created CB-1380:

             Summary: Data URIs do not work on iOS
                 Key: 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'); = 'red';
frame.src = 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E'

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:

View raw message