fix(iOS): Ignore WebKitDomainError 101 (#961)

This commit is contained in:
Ben Wildeman 2019-12-17 09:55:26 +00:00 committed by Thibault Malbranche
parent ce565f4832
commit adb5608116
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ static NSDictionary* customCertificatesForHost;
return;
}
if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102) {
if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102 || [error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 101) {
// Error code 102 "Frame load interrupted" is raised by the WKWebView
// when the URL is from an http redirect. This is a common pattern when
// implementing OAuth with a WebView.