cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9998) CLONE - Data URIs do not work on Android
Date Tue, 17 Nov 2015 22:56:11 GMT

    [ https://issues.apache.org/jira/browse/CB-9998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009778#comment-15009778
] 

Joe Bowser commented on CB-9998:
--------------------------------

Can you provide more info, like which version of Android, and which version of Chromium you
ran into this issue? Also, did you whitelist the navigation on the data blob URI?  More information
regarding this issue is needed.

> CLONE - Data URIs do not work on Android
> ----------------------------------------
>
>                 Key: CB-9998
>                 URL: https://issues.apache.org/jira/browse/CB-9998
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 5.3.3
>            Reporter: Sean Whitaker
>            Assignee: Joe Bowser
>
> 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);
> I/ActivityManager(  437): START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
dat=data:text/html;charset=utf-8,<!DOCTYPE HTML><html><body>asdf</body></html>}
from uid 10052 on display 0
> E/CordovaWebViewImpl( 2678): Error loading url data:text/html;charset=utf-8,%3C%21DOCTYPE%20HTML%3E%3Chtml%3E%3Cbody%3Easdf%3C%2Fbody%3E%3C%2Fhtml%3E
> E/CordovaWebViewImpl( 2678): android.content.ActivityNotFoundException: No Activity found
to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE]
dat=data:text/html;charset=utf-8,<!DOCTYPE HTML><html><body>asdf</body></html>
}
> E/CordovaWebViewImpl( 2678):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1765)
> E/CordovaWebViewImpl( 2678):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1485)
> E/CordovaWebViewImpl( 2678):    at android.app.Activity.startActivityForResult(Activity.java:3736)
> E/CordovaWebViewImpl( 2678):    at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:337)
> E/CordovaWebViewImpl( 2678):    at android.app.Activity.startActivityForResult(Activity.java:3697)
> E/CordovaWebViewImpl( 2678):    at android.app.Activity.startActivity(Activity.java:4007)
> E/CordovaWebViewImpl( 2678):    at android.app.Activity.startActivity(Activity.java:3975)
> E/CordovaWebViewImpl( 2678):    at org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:237)
> E/CordovaWebViewImpl( 2678):    at org.apache.cordova.CordovaWebViewImpl$EngineClient.onNavigationAttempt(CordovaWebViewImpl.java:602)
> E/CordovaWebViewImpl( 2678):    at org.apache.cordova.engine.SystemWebViewClient.shouldOverrideUrlLoading(SystemWebViewClient.java:79)
> E/CordovaWebViewImpl( 2678):    at com.android.webview.chromium.WebViewContentsClientAdapter.shouldOverrideUrlLoading(WebViewContentsClientAdapter.java:339)
> E/CordovaWebViewImpl( 2678):    at com.android.org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(AwContentsClientBridge.java:261)
> E/CordovaWebViewImpl( 2678):    at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native
Method)
> E/CordovaWebViewImpl( 2678):    at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:28)
> E/CordovaWebViewImpl( 2678):    at android.os.Handler.dispatchMessage(Handler.java:102)
> E/CordovaWebViewImpl( 2678):    at android.os.Looper.loop(Looper.java:135)
> E/CordovaWebViewImpl( 2678):    at android.app.ActivityThread.main(ActivityThread.java:5221)
> E/CordovaWebViewImpl( 2678):    at java.lang.reflect.Method.invoke(Native Method)
> E/CordovaWebViewImpl( 2678):    at java.lang.reflect.Method.invoke(Method.java:372)
> E/CordovaWebViewImpl( 2678):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
> E/CordovaWebViewImpl( 2678):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)a:597)
> 08-31 20:12:37.873: E/Cordova(13151): 	at dalvik.system.NativeStart.main(Native Method)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message