Apache Cordova
  1. Apache Cordova
  2. CB-3530

PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1" (for navigation to an anchor on the same page)

    Details

      Description

      I have a PhoneGap app on iOS which was working fine with PhoneGap 2.3.0 but crashes with 2.7.0 with the following error:

      2013-05-02 10:08:13.214 App[8896:c07] CDVWebViewDelegate: Navigation started when state=1

      2013-05-02 10:08:13.215 App[8896:c07] Failed to load webpage with error: (null)

      The problem is:
      CDVWebViewDelegate.m: shouldStartLoadWithRequest() function: In switch case, default: error code is being passed as nil

      and in CDVInAppBrowser.m: didFailLoadWithError() function, error.localizedDescription is being referenced, which causes a crash as error object is nil.

      For now, i added a check in the above function to put default values for error code if the error object is nil. I hope this crash is fixed in the next PhoneGap release.

      1. 2013-07-08.crash
        36 kB
        Fabian Chacon Carrillo
      2. 2013-07-08.crash
        36 kB
        Fabian Chacon Carrillo

        Issue Links

          Activity

            People

            • Assignee:
              Shazron Abdullah
              Reporter:
              Montyleena
            • Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:

                Development