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

Issue 2461043003: Fix for the RedirectTest.ClientServerServer test. (Closed)

Created:
4 years, 1 month ago by ananta
Modified:
4 years, 1 month ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, loading-reviews_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for the RedirectTest.ClientServerServer test with browser side navigation. japhet: Please review blink changes. jam/nasko: Please review everything This test does the following: Navigates to a meta tag refreshed page which is refreshed to server 1 via a HTTP redirect followed by another redirect to server2 and then the final URL. This works correctly in the regular case as individual redirect messages are passed back to the renderer (blink) where the list is correctly maintained and is passed back in the FrameHostMsg_DidCommitProvisionalLoad message with the url of the referrer which initiated the client side redirect at the head of the list. With browser side navigation we do pass the server redirect information back to the renderer in the FrameMsg_CommitNavigation IPC message. When the navigation is processed the url of the referrer which initated the client side redirect is added after the server side redirect urls as blink just appends the document url (original referrer) to the redirect list followed by the destination url. Basically the assumption is that blink is always informed about server side redirects which is not the case with browser side navigation. Changes in this patch are as below: 1. Add the document URL for client side redirects to the redirect list in the DocumentLoader ctor. The other changes are to ensure that the client redirection flag makes it to the DocumentLoader ctor This ensures that the redirect list is in the correct order. BUG=660567 Committed: https://crrev.com/d9062cc1ce0d2fda908c0f8d4e959c12d60d3d90 Cr-Commit-Position: refs/heads/master@{#429207}

Patch Set 1 #

Patch Set 2 : Remove debugging code #

Patch Set 3 : Use LazyInstance to fix compile failures #

Patch Set 4 : Reverted the change to navigation_request.cc as the blink change is enough #

Patch Set 5 : Fix presubmit #

Total comments: 2

Patch Set 6 : Move the code to add the document URL to the redirect list in the DocumentLoader ctor #

Patch Set 7 : Remove the unused prependRedirect method #

Patch Set 8 : Fix bot redness #

Patch Set 9 : Fix build error #

Patch Set 10 : More build errors #

Total comments: 2

Patch Set 11 : Pass the ClientRedirectPolicy enum instead of the bool flag #

Patch Set 12 : Fix build error #

Patch Set 13 : More build error fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -35 lines) Patch
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 111 (81 generated)
ananta
4 years, 1 month ago (2016-10-28 22:36:56 UTC) #6
Nate Chapin
lgtm
4 years, 1 month ago (2016-10-31 17:21:11 UTC) #23
nasko
https://codereview.chromium.org/2461043003/diff/80001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2461043003/diff/80001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1681 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1681: m_provisionalDocumentLoader->prependRedirect(m_frame->document()->url()); Why is there another URL in the redirect ...
4 years, 1 month ago (2016-10-31 18:45:50 UTC) #24
Nate Chapin
On 2016/10/31 18:45:50, nasko (out until nov 4) wrote: > https://codereview.chromium.org/2461043003/diff/80001/third_party/WebKit/Source/core/loader/FrameLoader.cpp > File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): ...
4 years, 1 month ago (2016-10-31 19:08:16 UTC) #25
ananta
https://codereview.chromium.org/2461043003/diff/80001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2461043003/diff/80001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1681 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1681: m_provisionalDocumentLoader->prependRedirect(m_frame->document()->url()); On 2016/10/31 18:45:50, nasko (out until nov 4) ...
4 years, 1 month ago (2016-10-31 19:11:33 UTC) #26
nasko
Thanks for the clarifications! I defer to Nate on blink code.
4 years, 1 month ago (2016-10-31 19:14:57 UTC) #27
ananta
On 2016/10/31 19:08:16, Nate Chapin wrote: > On 2016/10/31 18:45:50, nasko (out until nov 4) ...
4 years, 1 month ago (2016-10-31 20:17:45 UTC) #29
Nate Chapin
LGTM with a nit https://codereview.chromium.org/2461043003/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h File third_party/WebKit/Source/core/loader/FrameLoaderClient.h (right): https://codereview.chromium.org/2461043003/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h#newcode174 third_party/WebKit/Source/core/loader/FrameLoaderClient.h:174: bool clientRedirect) = 0; Nit: ...
4 years, 1 month ago (2016-10-31 23:06:36 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 02:49:45 UTC) #61
ananta
https://codereview.chromium.org/2461043003/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h File third_party/WebKit/Source/core/loader/FrameLoaderClient.h (right): https://codereview.chromium.org/2461043003/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h#newcode174 third_party/WebKit/Source/core/loader/FrameLoaderClient.h:174: bool clientRedirect) = 0; On 2016/10/31 23:06:36, Nate Chapin ...
4 years, 1 month ago (2016-11-01 02:49:50 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/293840)
4 years, 1 month ago (2016-11-01 02:56:38 UTC) #64
ananta
+kbr for BaseAudioContext.cpp owners. TBR'ing. Will address comments in a followup.
4 years, 1 month ago (2016-11-01 13:28:42 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 13:29:04 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/4372)
4 years, 1 month ago (2016-11-01 15:41:07 UTC) #71
jam
cool! I'm not that familiar with this code, and I'm not an owner, so I ...
4 years, 1 month ago (2016-11-01 17:19:40 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 17:34:48 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/4379)
4 years, 1 month ago (2016-11-01 18:38:13 UTC) #76
Ken Russell (switch to Gerrit)
BaseAudioContextTest lgtm
4 years, 1 month ago (2016-11-01 18:47:26 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 19:10:12 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 20:27:58 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 22:31:07 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/4390)
4 years, 1 month ago (2016-11-01 23:48:15 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-01 23:50:35 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/4408)
4 years, 1 month ago (2016-11-02 01:14:06 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-02 02:28:24 UTC) #98
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-02 02:30:37 UTC) #102
commit-bot: I haz the power
Your CL can not be processed by CQ because of: * Failed to parse additional ...
4 years, 1 month ago (2016-11-02 02:30:42 UTC) #104
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461043003/240001
4 years, 1 month ago (2016-11-02 02:44:09 UTC) #107
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 1 month ago (2016-11-02 04:22:09 UTC) #109
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 04:24:07 UTC) #111
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/d9062cc1ce0d2fda908c0f8d4e959c12d60d3d90
Cr-Commit-Position: refs/heads/master@{#429207}

Powered by Google App Engine
This is Rietveld 408576698