[
https://issues.apache.org/jira/browse/CB-7813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175633#comment-14175633
]
ASF subversion and git services commented on CB-7813:
-----------------------------------------------------
Commit 5de0f3f7f1d39e5b45909d00862869b4fc245bb3 in cordova-ios's branch
refs/heads/master from pbenschop
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=5de0f3f ]
CB-7813 - CDVWebViewDelegate fails to update the webview state properly in iOS
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
straigtforward
way possible, please refer to:
https://github.com/greatvines/cordova-webview-state-bug-www
Signed-off-by: Shazron Abdullah <[email protected]>
> CDVWebViewDelegate fails to update the webview state properly in iOS
> --------------------------------------------------------------------
>
> Key: CB-7813
> URL: https://issues.apache.org/jira/browse/CB-7813
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Fix For: 3.7.0
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]