Chromium Code Reviews| Index: ios/web/web_state/ui/crw_web_controller.mm |
| diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm |
| index daba52a1871c7d98c800ef12efd9cc37c4478fbd..8d33e5f1b51d59ef1248df4f50970c60d7039661 100644 |
| --- a/ios/web/web_state/ui/crw_web_controller.mm |
| +++ b/ios/web/web_state/ui/crw_web_controller.mm |
| @@ -4590,6 +4590,17 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5; |
| } |
| } |
| +- (void)didShowSensitiveInputOnHttp { |
| + // TODO: Get the current item, not the visible item. |
|
lgarron
2016/11/29 03:48:49
The implementation of webControllerDidUpdateSSLSta
Eugene But (OOO till 7-30)
2016/11/30 17:58:41
Tab uses transient item to exit from fullscreen if
lgarron
2016/12/02 01:21:52
Desktop uses LastCommittedEntry() [1].
Ive updated
Eugene But (OOO till 7-30)
2016/12/02 01:53:11
There is no ned to change Tab. It uses pending ent
|
| + web::NavigationItem* item = |
| + self.webState->GetNavigationManager()->GetVisibleItem(); |
| + item->GetSSL().security_style = web::SECURITY_STYLE_AUTHENTICATED; |
|
estark
2016/11/29 21:28:48
I don't think you should be setting the security_s
lgarron
2016/12/02 01:21:52
Removed.
|
| + item->GetSSL().content_status |= web::SSLStatus::DISPLAYED_INSECURE_CONTENT; |
| + item->GetSSL().content_status |= |
| + web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP; |
|
estark
2016/11/29 21:28:48
Are you planning to later expand this method to ha
lgarron
2016/12/02 01:21:52
Possibly. I've renamed to didShowPasswordInputOnHT
|
| + [self didUpdateSSLStatusForCurrentNavigationItem]; |
| +} |
| + |
| - (void)handleSSLCertError:(NSError*)error { |
| CHECK(web::IsWKWebViewSSLCertError(error)); |