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

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

Issue 2768933004: Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancell… (Closed)
Patch Set: without PlzNavigate 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index 2fdd79c55b1d9dc58ea8b75bce1127ca4e190dbb..1461438152b61e69e1dfef3a2d3d588840bd1532 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -497,8 +497,10 @@ void FrameTreeNode::DidChangeLoadProgress(double load_progress) {
bool FrameTreeNode::StopLoading() {
if (IsBrowserSideNavigationEnabled()) {
if (navigation_request_) {
- navigation_request_->navigation_handle()->set_net_error_code(
+ navigation_request_->navigation_handle()->set_net_error_code(
net::ERR_ABORTED);
+ navigator_->DiscardPendingEntryIfNeeded(
+ navigation_request_->navigation_handle());
}
ResetNavigationRequest(false);
}
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698