Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index ffb0cfe11b9ad53199e9b7b2df660f50df16e9b4..47f4ab42a82e08097eada67ee3ae99f53054d6b5 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -2636,6 +2636,10 @@ void RenderFrameImpl::willSendRequest( |
InternalDocumentStateData::FromDocumentState(document_state); |
NavigationState* navigation_state = document_state->navigation_state(); |
transition_type = navigation_state->transition_type(); |
+ if (data_source->isClientRedirect()) { |
nasko
2014/11/07 16:50:05
This doesn't seem right, as it picks up the top-le
Fredrik Öhrn
2014/11/10 12:51:57
Fixed.
|
+ transition_type = static_cast<ui::PageTransition>( |
+ transition_type | ui::PAGE_TRANSITION_CLIENT_REDIRECT); |
nasko
2014/11/07 16:50:05
Why not use safer pattern that already exists in t
Fredrik Öhrn
2014/11/10 12:51:57
Because I didn't find PageTransitionFromInt to add
nasko
2014/11/10 15:01:44
Why not improve the code then? I would go even a s
|
+ } |
GURL request_url(request.url()); |
GURL new_url; |