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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2461043003: Fix for the RedirectTest.ClientServerServer test. (Closed)
Patch Set: Fix presubmit 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 800e38378e8e596430318731ed891abd4ee6ce16..754b4ab583d419827cc97d8ab8429faaeee757d9 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1675,8 +1675,10 @@ void FrameLoader::startLoad(FrameLoadRequest& frameLoadRequest,
client()->dispatchWillSubmitForm(frameLoadRequest.form());
m_progressTracker->progressStarted();
+ // The document URL needs to be added to the head of the list as that is
+ // where the redirects originated.
if (m_provisionalDocumentLoader->isClientRedirect())
- m_provisionalDocumentLoader->appendRedirect(m_frame->document()->url());
+ m_provisionalDocumentLoader->prependRedirect(m_frame->document()->url());
nasko 2016/10/31 18:45:50 Why is there another URL in the redirect chain? Th
ananta 2016/10/31 19:11:33 The FrameLoaderClientImpl::createDocumentLoader fu
m_provisionalDocumentLoader->appendRedirect(
m_provisionalDocumentLoader->request().url());
double triggeringEventTime =
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698