Index: content/browser/devtools/protocol/security_handler.cc |
diff --git a/content/browser/devtools/protocol/security_handler.cc b/content/browser/devtools/protocol/security_handler.cc |
index f3ff1405037807ebee3a516939dd5fa40abbf1bc..1b92427c9b3042c8dec2b3c52a14bebf7d600fd0 100644 |
--- a/content/browser/devtools/protocol/security_handler.cc |
+++ b/content/browser/devtools/protocol/security_handler.cc |
@@ -154,8 +154,8 @@ Response SecurityHandler::ShowCertificateViewer() { |
if (!host_) |
return Response::InternalError("Could not connect to view"); |
WebContents* web_contents = WebContents::FromRenderFrameHost(host_); |
- scoped_refptr<net::X509Certificate> certificate = web_contents-> |
- GetController().GetLastCommittedEntry()->GetSSL().certificate; |
+ scoped_refptr<net::X509Certificate> certificate = |
+ web_contents->GetController().GetVisibleEntry()->GetSSL().certificate; |
if (!certificate) |
return Response::InternalError("Could not find certificate"); |
web_contents->GetDelegate()->ShowCertificateViewerInDevTools( |