Chromium Code Reviews| 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 = |