This is an automated email from the ASF dual-hosted git repository.

shazron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new 6cd3d8e  CB-13222 - (iOS) Infinite Loop when a "NSURLErrorCancelled 
-999" is received on didFailLoadWithError (#334)
6cd3d8e is described below

commit 6cd3d8ed6dcc6fdd8555b08809f33aded542b21e
Author: Vitor Oliveira <[email protected]>
AuthorDate: Tue Aug 29 18:36:23 2017 +0100

    CB-13222 - (iOS) Infinite Loop when a "NSURLErrorCancelled -999" is 
received on didFailLoadWithError (#334)
---
 .../Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m
 
b/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m
index 348c284..bc56fdd 100644
--- 
a/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m
+++ 
b/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m
@@ -80,7 +80,9 @@
     if (errorUrl) {
         errorUrl = [NSURL URLWithString:[NSString 
stringWithFormat:@"?error=%@", [message 
stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLPathAllowedCharacterSet]]
 relativeToURL:errorUrl];
         NSLog(@"%@", [errorUrl absoluteString]);
-        [theWebView loadRequest:[NSURLRequest requestWithURL:errorUrl]];
+        if(error.code != NSURLErrorCancelled) {
+            [theWebView loadRequest:[NSURLRequest requestWithURL:errorUrl]];
+        }
     }
 }
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to