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

Unified Diff: content/browser/frame_host/navigator_impl.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/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 8466c51d4c00648f191c0630572ff4778a6fbd2d..dc3632ec7279fc53ad361999229d49a6b546d247 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -1098,6 +1098,11 @@ void NavigatorImpl::RequestNavigation(FrameTreeNode* frame_tree_node,
frame_tree_node->current_frame_host()->ShouldDispatchBeforeUnload();
FrameMsg_Navigate_Type::Value navigation_type =
GetNavigationType(controller_->GetBrowserContext(), entry, reload_type);
+ if (navigation_type == FrameMsg_Navigate_Type::NORMAL &&
clamy 2016/10/10 11:48:02 nit: add a comment explaining that a normal load o
scottmg 2016/10/11 19:52:32 Done.
+ frame_tree_node->current_url() == entry.GetURL() &&
+ !is_same_document_history_load) {
+ navigation_type = FrameMsg_Navigate_Type::RELOAD_MAIN_RESOURCE;
nasko 2016/10/10 22:04:22 I think we are best doing this for both current na
scottmg 2016/10/11 19:52:32 I tried this, but Android seems to have some legac
+ }
std::unique_ptr<NavigationRequest> scoped_request =
NavigationRequest::CreateBrowserInitiated(
frame_tree_node, dest_url, dest_referrer, frame_entry, entry,

Powered by Google App Engine
This is Rietveld 408576698