You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/04/24 01:19:19 UTC

[jira] [Resolved] (CB-3219) Blob object discrepancies between platforms

     [ https://issues.apache.org/jira/browse/CB-3219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-3219.
-------------------------------

    Resolution: Won't Fix

Thanks for pointing this out Grzegorz. I don't think this is something we can fix in Cordova. It's a problem with the underlying version of WebKit not supporting the Blob constructor.

For Android 3.0+, you can use WebKitBlobBuilder though.
                
> Blob object discrepancies between platforms
> -------------------------------------------
>
>                 Key: CB-3219
>                 URL: https://issues.apache.org/jira/browse/CB-3219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS
>    Affects Versions: 2.6.0
>         Environment: iOS device: iPhone 3gs, os: 6.1
> Android device version: N7102, os: 4.1.1
> Using default project created via "cordova create && cordova platform(s) add" commands.
>            Reporter: Grzegorz Nowak
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> h4. how to reproduce
> When checking for Blob object support with the code (slightly modified boilerplate code, from boilerplate project):
> {code:title=Bar.javascript|borderStyle=solid}
> var app = {
>     initialize: function() {
>         this.bind();
>     },
>     bind: function() {
>         document.addEventListener('deviceready', this.deviceready, false);
>     },
>     deviceready: function() {
>         // note that this is an event handler so the scope is that of the event
>         // so we need to call app.report(), and not this.report()
>         app.report();
>     },
>     report: function() {
>         alert(this.isBlobSupported());
>     },
>     isBlobSupported:function() {
>         try {
>             return !!new Blob();
>         } catch (e) {
>             return false;
>         }
>     }
> };
> {code} 
> h4. result 
> I get different results for iOS (true) and Android (false).
> h4. expected result
> code should return the same value for every device supported.

--
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