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

Side by Side Diff: content/browser/frame_host/navigation_request.cc

Issue 2454233002: Fix history nav to a script-injected about:blank frame. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.cc ('k') | content/common/navigation_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/navigation_request.h" 5 #include "content/browser/frame_host/navigation_request.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/devtools/render_frame_devtools_agent_host.h" 9 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
10 #include "content/browser/frame_host/frame_tree.h" 10 #include "content/browser/frame_host/frame_tree.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 RequestNavigationParams request_params( 126 RequestNavigationParams request_params(
127 false, // is_overriding_user_agent 127 false, // is_overriding_user_agent
128 std::vector<GURL>(), // redirects 128 std::vector<GURL>(), // redirects
129 false, // can_load_local_resources 129 false, // can_load_local_resources
130 base::Time::Now(), // request_time 130 base::Time::Now(), // request_time
131 PageState(), // page_state 131 PageState(), // page_state
132 -1, // page_id 132 -1, // page_id
133 0, // nav_entry_id 133 0, // nav_entry_id
134 false, // is_same_document_history_load 134 false, // is_same_document_history_load
135 false, // is_history_navigation_in_new_child 135 false, // is_history_navigation_in_new_child
136 std::set<std::string>(), // subframe_unique_names 136 std::map<std::string, bool>(), // subframe_unique_names
137 frame_tree_node->has_committed_real_load(), 137 frame_tree_node->has_committed_real_load(),
138 false, // intended_as_new_entry 138 false, // intended_as_new_entry
139 -1, // pending_history_list_offset 139 -1, // pending_history_list_offset
140 current_history_list_offset, current_history_list_length, 140 current_history_list_offset, current_history_list_length,
141 false, // is_view_source 141 false, // is_view_source
142 false); // should_clear_history_list 142 false); // should_clear_history_list
143 std::unique_ptr<NavigationRequest> navigation_request( 143 std::unique_ptr<NavigationRequest> navigation_request(
144 new NavigationRequest(frame_tree_node, common_params, begin_params, 144 new NavigationRequest(frame_tree_node, common_params, begin_params,
145 request_params, false, nullptr, nullptr)); 145 request_params, false, nullptr, nullptr));
146 return navigation_request; 146 return navigation_request;
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 TransferNavigationHandleOwnership(render_frame_host); 462 TransferNavigationHandleOwnership(render_frame_host);
463 render_frame_host->CommitNavigation(response_.get(), std::move(body_), 463 render_frame_host->CommitNavigation(response_.get(), std::move(body_),
464 common_params_, request_params_, 464 common_params_, request_params_,
465 is_view_source_); 465 is_view_source_);
466 466
467 frame_tree_node_->ResetNavigationRequest(true); 467 frame_tree_node_->ResetNavigationRequest(true);
468 } 468 }
469 469
470 } // namespace content 470 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.cc ('k') | content/common/navigation_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698