Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1406

HTTP-Get via XHR in Web Workers always return status 0 under iOS 6 (Beta 4)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.0
    • 2.3.0
    • cordova-ios
    • all iOS devices and simulators

    Description

      HTTPRequests in the Web Workers ending always with http.readyState==4 (that's the ready state) but with http.status==0, which is an undefined status (normal is 200 for "o.k."). The file is requested from and fully deliverd by the webserver.

      This happens under iOS 6 Beta 4 but not under iOS 5.x where the same app with the same Cordova version works well.

      The problem did not occur with XHR in the native programs main thread nor in non-native HTML5-apps (WebApps without the use of Cordova).

      A Xcode test project is available.

      Attachments

        1. testworker.js
          0.5 kB
          Jochen Magnus
        2. workertest.html
          0.3 kB
          Jochen Magnus
        3. workertest2.tar.bz2
          142 kB
          Jochen Magnus
        4. workertest-native.zip
          41 kB
          Jochen Magnus
        5. xhr_tests.png
          94 kB
          Jochen Magnus

        Activity

          People

            mmocny Michal Mocny
            ioma Jochen Magnus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: