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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 626913004: Set the ui::PAGE_TRANSITION_CLIENT_REDIRECT flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test case flakiness Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 7d23a41e54ea4897861127b498eea355968a1643..959a43c954533a406916d0a89c5dbaec887a6e5c 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2786,6 +2786,11 @@ void RenderFrameImpl::willSendRequest(
InternalDocumentStateData::FromDocumentState(document_state);
NavigationState* navigation_state = document_state->navigation_state();
ui::PageTransition transition_type = navigation_state->transition_type();
+ WebDataSource* frame_ds = frame->provisionalDataSource();
+ if (frame_ds && frame_ds->isClientRedirect()) {
+ transition_type = ui::PageTransitionFromInt(
+ transition_type | ui::PAGE_TRANSITION_CLIENT_REDIRECT);
+ }
GURL request_url(request.url());
GURL new_url;
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_browsertest.cc ('k') | content/test/data/client_redirect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698