Index: ios/web/shell/view_controller.mm |
diff --git a/ios/web/shell/view_controller.mm b/ios/web/shell/view_controller.mm |
index c15bf1cdcb415760877763aa8a707433cee44c9e..39fc2eff155589b9dcdba458f1413d0c9520b8ce 100644 |
--- a/ios/web/shell/view_controller.mm |
+++ b/ios/web/shell/view_controller.mm |
@@ -293,11 +293,31 @@ bool UseWKWebView() { |
- (BOOL)openExternalURL:(const GURL&)url { |
return NO; |
} |
+ |
- (void)presentSSLError:(const net::SSLInfo&)info |
forSSLStatus:(const web::SSLStatus&)status |
recoverable:(BOOL)recoverable |
callback:(SSLErrorCallback)shouldContinue { |
+ UIAlertController* alert = [UIAlertController |
+ alertControllerWithTitle:@"Your connection is not private" |
+ message:nil |
+ preferredStyle:UIAlertControllerStyleActionSheet]; |
+ [alert addAction:[UIAlertAction actionWithTitle:@"Go Back" |
+ style:UIAlertActionStyleCancel |
+ handler:^(UIAlertAction*) { |
+ shouldContinue(NO); |
+ }]]; |
+ |
+ if (recoverable) { |
+ [alert addAction:[UIAlertAction actionWithTitle:@"Continue" |
+ style:UIAlertActionStyleDefault |
+ handler:^(UIAlertAction*) { |
+ shouldContinue(YES); |
+ }]]; |
+ } |
+ [self presentViewController:alert animated:YES completion:nil]; |
} |
+ |
- (void)presentSpoofingError { |
} |
- (void)webLoadCancelled:(const GURL&)url { |