[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)

2016-04-11 Thread John Stoker (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15234659#comment-15234659
 ] 

John Stoker commented on CB-3530:
-

Okay, so I think you're suggesting that we migrate the code into a new project 
and verify that we get the same issue?

For those of us unfamiliar with what the issues are with Cordova, which parts 
do we need to avoid moving across?

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[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)

2016-04-08 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15232502#comment-15232502
 ] 

Shazron Abdullah commented on CB-3530:
--

Please file a new issue with repro steps in a new clean project.

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[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)

2016-04-08 Thread John Stoker (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15232377#comment-15232377
 ] 

John Stoker commented on CB-3530:
-

We're having this problem in Cordova 6.1.1 - Anything we should be looking for 
as theoretically this problem went away three years ago.

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[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)

2014-11-12 Thread Pu Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14209343#comment-14209343
 ] 

Pu Wang commented on CB-3530:
-

That's good,  I am expecting this to be fixed, but in my solution , I have to 
use the changes I made.

thanks!

 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 was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[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)

2014-11-11 Thread Pu Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14207768#comment-14207768
 ] 

Pu Wang commented on CB-3530:
-

I am using the latest cordova(3.5.0-0.2.7), I am still having this issue, and 
finally I found that the webview.request.absoluteString is always the root path 
of my website.

And I fix it by update the CDVWebViewDelegate.m, the method: - (BOOL) 
request:(NSURLRequest*)newRequest 
isEqualToRequestAfterStrippingFragments:(UIWebView*)webview, 
changed the line: 
{code:none}
*NSTring* originalRequestUrl = [originalRequest.URL absoluteString]; *
{code}
to : 
{code:none}
*NString originalRequestUrl = [self evalForCurrentURL absoluteString];*
{code}

I don't known why that the webview.request.URL is always the root of my website 
after navigate with JQM , but the method evalForCurrentURL will get the correct 
current url.

Please review and check if the current fix really works.

 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 was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[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)

2014-05-16 Thread Rushabh Shah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13999246#comment-13999246
 ] 

 Rushabh Shah commented on CB-3530:
---

Hello, I am also experiencing the same issue only this is occurring on both iOS 
and Android devices.

The error occurs after I navigate back and forth between pages. It is not 
consistent, it takes about 10-15 navigations between pages before the error 
appears.

I am using version 3.2.0

Please let me know if you need any additional information.

Thank you

 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 was sent by Atlassian JIRA
(v6.2#6252)


[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)

2014-05-01 Thread Griffin Mobile (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13987134#comment-13987134
 ] 

Griffin Mobile commented on CB-3530:


Hello,

I currently have phone gap 3.4.0 and Xcode 5.1.1 and I'm getting the error 
message below - Do you have any ideas. I've been googling this for two days 
with not luck. I see that this was suppose to be fixed but not sure why I'm 
getting this error.

CDVWebViewDelegate: Navigation started when state=1
Failed to load webpage with error: CDVWebViewDelegate: Navigation started when 
state=1

v/r
Donald Bozeman


 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 was sent by Atlassian JIRA
(v6.2#6252)


[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)

2013-07-15 Thread Fabian Chacon Carrillo (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13709073#comment-13709073
 ] 

Fabian Chacon Carrillo commented on CB-3530:


Hi Shazron, do you have time to review the crash logs? Thanks in advance

 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


[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)

2013-07-15 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13709282#comment-13709282
 ] 

Shazron Abdullah commented on CB-3530:
--

Can't tell anything from that but I think it might be another type of crash 
unrelated to this one and may be related to the InAppBrowser (even though the 
error shows, it is benign).

It could be this: CB-4717 

 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


[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)

2013-07-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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


[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)

2013-07-12 Thread Fabian Chacon Carrillo (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13707041#comment-13707041
 ] 

Fabian Chacon Carrillo commented on CB-3530:


Sure this is the log

 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


 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


[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)

2013-07-12 Thread Fabian Chacon Carrillo (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13707049#comment-13707049
 ] 

Fabian Chacon Carrillo commented on CB-3530:


Shazron: This is the crash log 

 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


 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


[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)

2013-07-11 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13706521#comment-13706521
 ] 

Shazron Abdullah commented on CB-3530:
--

Fabian: if you have the crash log, that would be great

 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


 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


[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)

2013-07-10 Thread Fabian Chacon Carrillo (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13705192#comment-13705192
 ] 

Fabian Chacon Carrillo commented on CB-3530:


Hi everyone, I'm using 2.9 version but I still have this error: Failed to load 
webpage with error: CDVWebViewDelegate: Navigation started when state=1. So 
after some time clicking a link, the app crash and the done button of the InApp 
Browser disappeared, so I'm unable to back to my app. I don't know if this fact 
could help, but I realized that this error occurs most often in IPad mini.

I appreciate any help, thanks in advance.

 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


 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


[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)

2013-07-09 Thread daryl hansen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13703064#comment-13703064
 ] 

daryl hansen commented on CB-3530:
--

But the latest version 2.9 still has the same problem, so how could it be fixed?

 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


 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


[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)

2013-07-09 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13703613#comment-13703613
 ] 

Shazron Abdullah commented on CB-3530:
--

It's not the same problem - it will never show the error in the location bar 
anymore. This is still open because of the console log message.
See: 
https://issues.apache.org/jira/browse/CB-3530?focusedCommentId=13693476page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13693476

 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


 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


[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)

2013-07-09 Thread daryl hansen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13703621#comment-13703621
 ] 

daryl hansen commented on CB-3530:
--

Ah, OK.  Thank you.  I understand now.  The bug is only related to the console 
log and won't effect the app we send to the Apple app store.



 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


 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


[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)

2013-07-09 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13703615#comment-13703615
 ] 

Shazron Abdullah commented on CB-3530:
--

Right now this doesn't affect any loading functionality, from what I gather.

 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


 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


[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)

2013-07-08 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13702553#comment-13702553
 ] 

Shazron Abdullah commented on CB-3530:
--

Of course - why wouldn't you, it is the fix for this bug, it is in the latest 
codebase.

 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


 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


[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)

2013-06-28 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13695501#comment-13695501
 ] 

ASF subversion and git services commented on CB-3530:
-

Commit f7b82dab42fe7f45042c3d7c0a898e0c60940019 in branch refs/heads/2.9.x from 
[~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=f7b82da ]

[CB-3530] Updated unit tests


 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


 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


[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)

2013-06-28 Thread daryl hansen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13696045#comment-13696045
 ] 

daryl hansen commented on CB-3530:
--

Can we use that to fix the bug?

 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


 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


[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)

2013-06-27 Thread daryl hansen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13695225#comment-13695225
 ] 

daryl hansen commented on CB-3530:
--

I got this printed in my log:

2013-06-27 16:01:59.201 HawaiiRealEstateApp[8091:c07] CDVWebViewDelegate: 
Navigation started when state=1
2013-06-27 16:01:59.201 HawaiiRealEstateApp[8091:c07] Failed to load webpage 
with error: CDVWebViewDelegate: Navigation started when state=1
2013-06-27 16:01:59.201 HawaiiRealEstateApp[8091:c07] CB-3530 -- original: 
file:///Users/daryl/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CA6C0FC8-1928-4995-87E1-7EB363AF7F57/HawaiiRealEstateApp.app/www/index.html
 

new: 
file:///Users/daryl/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CA6C0FC8-1928-4995-87E1-7EB363AF7F57/HawaiiRealEstateApp.app/www/SearchResultsMaui.html?Class=ResidentialAgentID%5B%5D=23949AgentID%5B%5D=11258AgentID%5B%5D=13485AgentID%5B%5D=10027SortField1=C_L_AskingPriceSortOrder1=DESCSortField2=C_LM_char10_69SortOrder2=ASC#/Users/daryl/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CA6C0FC8-1928-4995-87E1-7EB363AF7F57/HawaiiRealEstateApp.app/www/MauiPropertyDetails.html?WhatMLS=353039

___

This confirms that is an issue with the hash tag, which is the way JQM 
navigates. This has been ongoing and I think it would be a good idea to fix 
this in a 2.9.1 version.  I really don't want to wait for 3.0 and a get a whole 
slew of new issues. Can you please just fix this.  

 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


 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


[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)

2013-06-25 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13693471#comment-13693471
 ] 

Shazron Abdullah commented on CB-3530:
--

I updated the unit tests to test for the malformed fragment, and they all still 
pass. I think this is a case where this is an error, it still prints the error 
string, but is harmless since it doesn't report Load Error in the location 
bar.

 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: 2.9.0


 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


[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)

2013-06-25 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13693474#comment-13693474
 ] 

ASF subversion and git services commented on CB-3530:
-

Commit c2cda903a85e958fec0ac0771cebdd4a73519a5d in branch refs/heads/2.9.x from 
[~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=c2cda90 ]

[CB-3530] Updated unit tests


 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


 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


[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)

2013-06-25 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13693476#comment-13693476
 ] 

Shazron Abdullah commented on CB-3530:
--

Assigning to 3.0.0 to get a better fix in to eliminate the error message once 
and for all. Right now I believe it should never trigger a Load Error in the 
location bar if it's a navigation to a url fragment

 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


 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


[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)

2013-06-24 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13692625#comment-13692625
 ] 

Shazron Abdullah commented on CB-3530:
--

[~pata viva] what url triggers this? Before this line: 
https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVWebViewDelegate.m#L240

Can you add this code and report if it gets printed out when you see the error:
{code}
 NSLog(@CB-3530 -- original: %@ new: %@, [webView.request.URL description], 
[request.URL description]);
{code}

 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: 2.9.0


 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


[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)

2013-06-24 Thread Monica Magallanes (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13692698#comment-13692698
 ] 

Monica Magallanes commented on CB-3530:
---

I added the code just after line 246, where I can get the error printed as 
follows:
2013-06-24 20:40:01.471 rex[10312:907] CDVWebViewDelegate: Navigation started 
when state=1
2013-06-24 20:40:01.472 rex[10312:907] CB-3530 -- original: 
file:///var/mobile/Applications/1DA0699E-3D17-4ACE-94AD-B165F12EE842/rex.app/www/index.html
 new: 
file:///var/mobile/Applications/1DA0699E-3D17-4ACE-94AD-B165F12EE842/rex.app/www/index.html#/var/mobile/Applications/1DA0699E-3D17-4ACE-94AD-B165F12EE842/rex.app/www/index.html

 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: 2.9.0


 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


[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)

2013-06-24 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13692742#comment-13692742
 ] 

Shazron Abdullah commented on CB-3530:
--

Wow, that is one weird file URL for the new request! This certainly helps, 
thanks! I'll add this type of URL to the unit tests and re-fix, although I'm 
certainly curious why the URL is like that - I've never seen that in normal 
usage :/ Maybe it's a UI framework that is mucking about with things?

 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: 2.9.0


 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


[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)

2013-06-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13688544#comment-13688544
 ] 

ASF subversion and git services commented on CB-3530:
-

Commit db43c7668c93e916eddba978475f22e6e8b9d61f in branch refs/heads/master 
from [~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=db43c76 ]

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

commit fe971530ea4bd5e083cc4d8f70f692f55bd3469f
Author: Shazron Abdullah shaz...@apache.org
Date:   Wed Jun 19 15:13:59 2013 -0700

Remove verbose NSLogs.

commit caa93a57b0de81d619e217fdc20fcc329bc4
Author: Shazron Abdullah shaz...@apache.org
Date:   Tue Jun 18 17:50:01 2013 -0700

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


 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: 2.9.0


 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


[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)

2013-06-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13688545#comment-13688545
 ] 

ASF subversion and git services commented on CB-3530:
-

Commit db43c7668c93e916eddba978475f22e6e8b9d61f in branch refs/heads/master 
from [~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=db43c76 ]

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

commit fe971530ea4bd5e083cc4d8f70f692f55bd3469f
Author: Shazron Abdullah shaz...@apache.org
Date:   Wed Jun 19 15:13:59 2013 -0700

Remove verbose NSLogs.

commit caa93a57b0de81d619e217fdc20fcc329bc4
Author: Shazron Abdullah shaz...@apache.org
Date:   Tue Jun 18 17:50:01 2013 -0700

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


 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: 2.9.0


 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


[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)

2013-06-18 Thread Farhad Farzaneh (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13686859#comment-13686859
 ] 

Farhad Farzaneh commented on CB-3530:
-

I don't have a pull request, and am actually not familiar enough with the code 
to understand the unintended consequences of my fix.  One thought is that 
returning NO above could mess up the browsing history if someone is counting on 
that.  Will try to test and report back.

Also, not being familiar with objective-C, I looked to see if I could add tests 
by adapting from existing tests but didn't see anything appropriate.  So please 
feel free to adapt and add tests.  

 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: 2.9.0


 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


[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)

2013-06-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13687461#comment-13687461
 ] 

ASF subversion and git services commented on CB-3530:
-

Commit caa93a57b0de81d619e217fdc20fcc329bc4 in branch refs/heads/CB-3530 
from [~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=caa93a5 ]

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


 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: 2.9.0


 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


[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)

2013-06-18 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13687462#comment-13687462
 ] 

Shazron Abdullah commented on CB-3530:
--

 I pushed this to the CB-3530 branch, pending further testing. Unit tests added 
as well: 
https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=commit;h=caa93a57b0de81d619e217fdc20fcc329bc4


 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: 2.9.0


 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