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

Unified Diff: chrome/browser/ui/webui/interstitials/interstitial_ui.cc

Issue 1955443002: Fix interstitial ui crashing when open in new tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link to bug Created 4 years, 7 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/interstitials/interstitial_ui_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/interstitials/interstitial_ui.cc
diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
index f228c518f0f3e3eea8a65bbb1221306316899422..a0dc29837e5bfbd696dafa92451f64dcefaea952 100644
--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
@@ -218,7 +218,7 @@ safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage(
resource.threat_type = threat_type;
resource.render_process_host_id =
web_contents->GetRenderProcessHost()->GetID();
- resource.render_frame_id = web_contents->GetFocusedFrame()->GetRoutingID();
+ resource.render_frame_id = web_contents->GetMainFrame()->GetRoutingID();
resource.threat_source = safe_browsing::ThreatSource::LOCAL_PVER3;
// Normally safebrowsing interstitial types which block the main page load
« no previous file with comments | « no previous file | chrome/browser/ui/webui/interstitials/interstitial_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698