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

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

Issue 2742853002: Fix stopped navigations not having the correct error code in their navigation handle. (Closed)
Patch Set: 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 | no next file » | 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 78bbf40fb5f9e4afdf4c3a883ecfbdd06d6a7c3d..be14c709c0a6ab7a14fa17d07840ed5fc735b758 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -498,8 +498,13 @@ void FrameTreeNode::DidChangeLoadProgress(double load_progress) {
}
bool FrameTreeNode::StopLoading() {
- if (IsBrowserSideNavigationEnabled())
+ if (IsBrowserSideNavigationEnabled()) {
+ if (navigation_request_) {
+ navigation_request_->navigation_handle()->set_net_error_code(
+ net::ERR_ABORTED);
+ }
ResetNavigationRequest(false);
+ }
// TODO(nasko): see if child frames should send IPCs in site-per-process
// mode.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698