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

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

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Rebase. Created 3 years, 9 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/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 6ba54ceff8dbae7e6297620e53ec0825cca1fb4d..e4546b7adf319feca8853d4925e9261381235efd 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -397,12 +397,14 @@ void NavigationRequest::CreateNavigationHandle(int pending_nav_entry_id) {
redirect_chain.push_back(common_params_.url);
std::unique_ptr<NavigationHandleImpl> navigation_handle =
- NavigationHandleImpl::Create(
- common_params_.url, redirect_chain, frame_tree_node_,
- !browser_initiated_, FrameMsg_Navigate_Type::IsSameDocument(
- common_params_.navigation_type),
- common_params_.navigation_start, pending_nav_entry_id,
- false); // started_in_context_menu
+ NavigationHandleImpl::Create(common_params_.url, redirect_chain,
+ frame_tree_node_, !browser_initiated_,
+ FrameMsg_Navigate_Type::IsSameDocument(
+ common_params_.navigation_type),
+ common_params_.navigation_start,
+ pending_nav_entry_id,
+ false, // started_in_context_menu
+ common_params_.should_check_main_world_csp);
if (!frame_tree_node->navigation_request()) {
// A callback could have cancelled this request synchronously in which case
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl_unittest.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698