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

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

Issue 2381503003: PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga… (Closed)
Patch Set: . Created 4 years, 2 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 0c6494043863b5c8aaadac1ca800c736a796cbc7..b81af5a915dd1b2a772b4a8c520fd239afe31f27 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -383,6 +383,16 @@ void NavigationRequest::OnResponseStarted(
NavigatorImpl::CheckWebUIRendererDoesNotDisplayNormalURL(render_frame_host,
common_params_.url);
+ if (render_frame_host->GetLastCommittedURL() ==
+ navigation_handle_->original_url() &&
+ common_params_.navigation_type == FrameMsg_Navigate_Type::NORMAL &&
+ navigation_handle_->WasServerRedirect() &&
clamy 2016/10/05 12:47:04 Is the redirect part needed? Otherwise, when we cr
nasko 2016/10/05 22:07:09 Yeah, I'm not sure why we have the redirect check
+ ui::PageTransitionCoreTypeIs(navigation_handle_->GetPageTransition(),
+ ui::PAGE_TRANSITION_RELOAD)) {
+ common_params_.navigation_type =
+ FrameMsg_Navigate_Type::RELOAD_MAIN_RESOURCE;
nasko 2016/10/05 22:07:09 I'm a bit afraid of such change. I do want us to d
+ }
+
// For renderer-initiated navigations that are set to commit in a different
// renderer, allow the embedder to cancel the transfer.
if (!browser_initiated_ &&

Powered by Google App Engine
This is Rietveld 408576698