You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Ben Longden (JIRA)" <ji...@apache.org> on 2012/08/09 21:05:19 UTC

[jira] [Created] (CB-1219) FileReader not triggering onloadend function in PhoneGap on iOS 6

Ben Longden created CB-1219:
-------------------------------

             Summary: FileReader not triggering onloadend function in PhoneGap on iOS 6
                 Key: CB-1219
                 URL: https://issues.apache.org/jira/browse/CB-1219
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.0.0, 1.9.0
            Reporter: Ben Longden
            Assignee: Shazron Abdullah


On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.

var reader = new FileReader();
reader.onloadend = function(evt) {
  console.log('This is never called');
};
reader.readAsText(obj);

Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1219) iOS 6 - FileReader not triggering onloadend function in PhoneGap

Posted by "Ben Longden (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Longden updated CB-1219:
----------------------------

    Summary: iOS 6 - FileReader not triggering onloadend function in PhoneGap  (was: FileReader not triggering onloadend function in PhoneGap on iOS 6)
    
> iOS 6 - FileReader not triggering onloadend function in PhoneGap
> ----------------------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Shazron Abdullah
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433204#comment-13433204 ] 

Michal Mocny commented on CB-1219:
----------------------------------

CDVFile::readAsText and CDVFile::readAsDataURL are never invoked (which is why callback isn't firing), while other methods in CDVFile seem to work fine.  Investigating why.
                
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Andrew Grieve
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Mocny resolved CB-1219.
------------------------------

       Resolution: Fixed
    Fix Version/s: Master
    
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Michal Mocny
>              Labels: ios6
>             Fix For: Master
>
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1219:
---------------------------------

    Assignee: Michal Mocny  (was: Andrew Grieve)
    
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Michal Mocny
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Ben Longden (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Longden updated CB-1219:
----------------------------

    Summary: iOS 6 - FileReader not triggering onloadend function  (was: iOS 6 - FileReader not triggering onloadend function in PhoneGap)
    
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Shazron Abdullah
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434203#comment-13434203 ] 

Michal Mocny commented on CB-1219:
----------------------------------

It seems that ios6 safari adds FileReader as a native api (http://caniuse.com/filereader).  This is why the cordova functions are not firing..

Perhaps the cordova api was meant as a stopgap until native implementations are added (we will still need to fix the current issues with usage), or perhaps the api needs renamed in order to not conflict?
                
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Andrew Grieve
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve reassigned CB-1219:
---------------------------------

    Assignee: Andrew Grieve  (was: Shazron Abdullah)
    
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Andrew Grieve
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1219) iOS 6 - FileReader not triggering onloadend function

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434426#comment-13434426 ] 

Michal Mocny commented on CB-1219:
----------------------------------

Clobbering the faulty native implementation fixes the tests: https://github.com/apache/incubator-cordova-js/pull/22
                
> iOS 6 - FileReader not triggering onloadend function
> ----------------------------------------------------
>
>                 Key: CB-1219
>                 URL: https://issues.apache.org/jira/browse/CB-1219
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Ben Longden
>            Assignee: Andrew Grieve
>              Labels: ios6
>
> On iOS 5.x the following code works as expected. Testing on iOS 6 beta 4 it appears that the callback is not called at all. This may also affect other callbacks in FileReader.
> var reader = new FileReader();
> reader.onloadend = function(evt) {
>   console.log('This is never called');
> };
> reader.readAsText(obj);
> Other research into this yields http://apache.markmail.org/thread/e4dhnq5qkn6ypprf which claims 5 of 95 tests in the File API fail on iOS 6 - though I have not verified this myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira