Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A29010D2F for ; Tue, 16 Jul 2013 00:50:49 +0000 (UTC) Received: (qmail 50498 invoked by uid 500); 16 Jul 2013 00:50:48 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 50482 invoked by uid 500); 16 Jul 2013 00:50:48 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 50473 invoked by uid 99); 16 Jul 2013 00:50:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 00:50:48 +0000 Date: Tue, 16 Jul 2013 00:50:48 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-3530) PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1" (for navigation to an anchor on the same page) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709303#comment-13709303 ] ASF subversion and git services commented on CB-3530: ----------------------------------------------------- Commit 8050fda8239a74875d3761ddcace718a62c00517 in branch refs/heads/master from [~shazron] [ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=8050fda ] [CB-3530] PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1" (for navigation to an anchor on the same page) Moved error log to print only in the failure condition. > PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1" (for navigation to an anchor on the same page) > ------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CB-3530 > URL: https://issues.apache.org/jira/browse/CB-3530 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, Plugin InAppBrowser > Affects Versions: 2.7.0 > Environment: Mac OSX 10.8.3, XCode 4.6.2, iOS 6.1 > Reporter: Montyleena > Assignee: Shazron Abdullah > Labels: crash, iOS,, inappbrowser, > Fix For: 3.0.0 > > Attachments: 2013-07-08.crash, 2013-07-08.crash > > > 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. -- 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