| Index: content/browser/frame_host/navigation_handle_impl.cc
|
| diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
|
| index 2e525bbe4956a473d0c41d0d2051e1d5801bdef4..38eda64434003395a82e848f19927302746bbed4 100644
|
| --- a/content/browser/frame_host/navigation_handle_impl.cc
|
| +++ b/content/browser/frame_host/navigation_handle_impl.cc
|
| @@ -64,11 +64,12 @@ std::unique_ptr<NavigationHandleImpl> NavigationHandleImpl::Create(
|
| bool is_same_page,
|
| const base::TimeTicks& navigation_start,
|
| int pending_nav_entry_id,
|
| - bool started_from_context_menu) {
|
| + bool started_from_context_menu,
|
| + bool should_bypass_main_world_csp) {
|
| return std::unique_ptr<NavigationHandleImpl>(new NavigationHandleImpl(
|
| url, redirect_chain, frame_tree_node, is_renderer_initiated, is_same_page,
|
| - navigation_start, pending_nav_entry_id,
|
| - started_from_context_menu));
|
| + navigation_start, pending_nav_entry_id, started_from_context_menu,
|
| + should_bypass_main_world_csp));
|
| }
|
|
|
| NavigationHandleImpl::NavigationHandleImpl(
|
| @@ -79,7 +80,8 @@ NavigationHandleImpl::NavigationHandleImpl(
|
| bool is_same_page,
|
| const base::TimeTicks& navigation_start,
|
| int pending_nav_entry_id,
|
| - bool started_from_context_menu)
|
| + bool started_from_context_menu,
|
| + bool should_bypass_main_world_csp)
|
| : url_(url),
|
| has_user_gesture_(false),
|
| transition_(ui::PAGE_TRANSITION_LINK),
|
| @@ -109,6 +111,7 @@ NavigationHandleImpl::NavigationHandleImpl(
|
| reload_type_(ReloadType::NONE),
|
| restore_type_(RestoreType::NONE),
|
| navigation_type_(NAVIGATION_TYPE_UNKNOWN),
|
| + should_bypass_main_world_csp_(should_bypass_main_world_csp),
|
| weak_factory_(this) {
|
| DCHECK(!navigation_start.is_null());
|
| if (redirect_chain_.empty())
|
| @@ -683,9 +686,9 @@ NavigationHandleImpl::CheckWillStartRequest() {
|
| case NavigationThrottle::PROCEED:
|
| continue;
|
|
|
| + case NavigationThrottle::BLOCK_REQUEST:
|
| case NavigationThrottle::CANCEL:
|
| case NavigationThrottle::CANCEL_AND_IGNORE:
|
| - case NavigationThrottle::BLOCK_REQUEST:
|
| state_ = CANCELING;
|
| return result;
|
|
|
| @@ -715,6 +718,7 @@ NavigationHandleImpl::CheckWillRedirectRequest() {
|
| case NavigationThrottle::PROCEED:
|
| continue;
|
|
|
| + case NavigationThrottle::BLOCK_REQUEST:
|
| case NavigationThrottle::CANCEL:
|
| case NavigationThrottle::CANCEL_AND_IGNORE:
|
| state_ = CANCELING;
|
| @@ -725,7 +729,6 @@ NavigationHandleImpl::CheckWillRedirectRequest() {
|
| next_index_ = i + 1;
|
| return result;
|
|
|
| - case NavigationThrottle::BLOCK_REQUEST:
|
| case NavigationThrottle::BLOCK_RESPONSE:
|
| NOTREACHED();
|
| }
|
|
|