Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2466143002: iOS: Mark HTTP pages with password fields with an omnibox icon. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..af9bd8e6c825b5123f846a121dd30414bef12ce5 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -4590,6 +4590,15 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
}
}
+- (void)didShowPasswordInputOnHTTP {
+ DCHECK(!web::IsOriginSecure(self.webState->GetLastCommittedURL()));
+ web::NavigationItem* item =
+ self.webState->GetNavigationManager()->GetLastCommittedItem();
+ item->GetSSL().content_status |=
+ web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP;
+ [self didUpdateSSLStatusForCurrentNavigationItem];
+}
+
- (void)handleSSLCertError:(NSError*)error {
CHECK(web::IsWKWebViewSSLCertError(error));

Powered by Google App Engine
This is Rietveld 408576698