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

Unified Diff: content/browser/frame_host/interstitial_page_navigator_impl.cc

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Addressed comments(alexmos@ and nasko@) Created 3 years, 10 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
Index: content/browser/frame_host/interstitial_page_navigator_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_navigator_impl.cc b/content/browser/frame_host/interstitial_page_navigator_impl.cc
index 045d3f917d6bee3a9e00c50a9f44691d27dc0209..57aa61cd27cd2a989c75086410ccdd755f0b5e3b 100644
--- a/content/browser/frame_host/interstitial_page_navigator_impl.cc
+++ b/content/browser/frame_host/interstitial_page_navigator_impl.cc
@@ -34,15 +34,15 @@ void InterstitialPageNavigatorImpl::DidStartProvisionalLoad(
const base::TimeTicks& navigation_start) {
// The interstitial page should only navigate once.
DCHECK(!render_frame_host->navigation_handle());
- render_frame_host->SetNavigationHandle(
- NavigationHandleImpl::Create(url, redirect_chain,
- render_frame_host->frame_tree_node(),
- false, // is_renderer_initiated
- false, // is_synchronous
- navigation_start,
- 0, // pending_nav_entry_id
- false) // started_in_context_menu
- );
+ render_frame_host->SetNavigationHandle(NavigationHandleImpl::Create(
+ url, redirect_chain, render_frame_host->frame_tree_node(),
+ false, // is_renderer_initiated
+ false, // is_synchronous
+ navigation_start,
+ 0, // pending_nav_entry_id
+ false, // started_in_context_menu
+ false) // should_bypass_main_world_csp
+ );
alexmos 2017/02/14 06:57:20 nit: this looks a bit weird on its own line. Can
arthursonzogni 2017/02/15 09:26:09 Yes, it looks weird to me too. The code formatter
}
void InterstitialPageNavigatorImpl::DidNavigate(

Powered by Google App Engine
This is Rietveld 408576698