cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3219) Blob object discrepancies between platforms
Date Wed, 24 Apr 2013 13:55:15 GMT

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

Andrew Grieve commented on CB-3219:
-----------------------------------

I'd love to see Cordova gain a library of plugins that do things like normalize the Blob API.
For Blobs in particular, I don't think there's a way that Cordova could fix it up that would
not be horribly inefficient.
                
> 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

Mime
View raw message