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

CDVWebViewDelegate fails to update the webview state properly in iOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0
    • cordova-ios
    • None

    Description

      pull request: https://github.com/apache/cordova-ios/pull/110

      CDVWebViewDelegate fails to update the webview state properly in iOS when a page loads an iframe using javascript and does a redirect to another page using javascript. Method didFailLoadWithError gets called while in STATE_WAITING_FOR_LOAD_START with a NSURLErrorCancelled (-999) error. Instead of entering STATE_CANCELLED in this situation it always enters STATE_IDLE, which causes didFailLoadWithError event to never fire (which depending on the app, and definitely in our case, can cause a hang condition).

      For a simplified Cordova project that reproduces the problem in the most straigth forward way possible, please refer to: https://github.com/greatvines/cordova-webview-state-bug-www

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: