cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Nowak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-3219) Blob object discrepancies between platforms
Date Tue, 23 Apr 2013 19:09:15 GMT
Grzegorz Nowak created CB-3219:
----------------------------------

             Summary: 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: Joe Bowser
            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