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

Unified Diff: content/browser/devtools/protocol/security_handler.cc

Issue 2522733002: Do not prompt for reload when security panel is opened on an interstitial (Closed)
Patch Set: Created 4 years, 1 month 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: 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 d3efa82257fbed81b3698de5f86068e161e2816d..f7a93ff53b0437a3dd807a83c8b5f3b406bba273 100644
--- a/content/browser/devtools/protocol/security_handler.cc
+++ b/content/browser/devtools/protocol/security_handler.cc
@@ -132,6 +132,8 @@ void SecurityHandler::SecurityStyleChanged(
->set_security_state(security_state)
->set_scheme_is_cryptographic(
security_style_explanations.scheme_is_cryptographic)
+ ->set_interstitial_is_showing(WebContents::FromRenderFrameHost(host_)
+ ->ShowingInterstitialPage())
->set_insecure_content_status(insecure_content_status)
->set_explanations(explanations));
}

Powered by Google App Engine
This is Rietveld 408576698