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

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

Issue 2522733002: Do not prompt for reload when security panel is opened on an interstitial (Closed)
Patch Set: remove isInterstitialShowing setter 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/page_handler.cc
diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
index e1f72108baba64e55e48595971da9806aaa7e4ce..8ec2ef384357a89e0e6564967645810968d07bbc 100644
--- a/content/browser/devtools/protocol/page_handler.cc
+++ b/content/browser/devtools/protocol/page_handler.cc
@@ -198,6 +198,8 @@ void PageHandler::DidDetachInterstitialPage() {
Response PageHandler::Enable() {
enabled_ = true;
+ if (GetWebContents() && GetWebContents()->ShowingInterstitialPage())
+ client_->InterstitialShown(InterstitialShownParams::Create());
return Response::FallThrough();
}

Powered by Google App Engine
This is Rietveld 408576698