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

Issue 2734633002: PlzNavigate: Fix the http/tests/loading/307-after-303-after-post.html and the http/tests/loading/re… (Closed)

Created:
3 years, 9 months ago by ananta
Modified:
3 years, 9 months ago
Reviewers:
clamy, Nate Chapin
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Fix the http/tests/loading/307-after-303-after-post.html and the http/tests/loading/redirect-methods.html layout tests. These tests fail because willSendRequest() occurs before didStartProvisionalLoad(). In PlzNavigate willSendRequest is called when we send a navigation to the browser via BeginNavigation(). Proposed fix is to remember the navigation state in decidePolicyForNavigation() and invoke BeginNavigation() when we receive the didStartProvisionalLoad() notification. We pass the WebURLRequest in WebFrameClient::didStartProvisionalLoad() The other change is to remember the navigation state in a PendingNavigationInfo structure in RenderFrameImpl. This is populated in decidePolicyForNavigation() and released in didStartProvisionalLoad(). BUG=647698, 625765 Review-Url: https://codereview.chromium.org/2734633002 Cr-Commit-Position: refs/heads/master@{#456510} Committed: https://chromium.googlesource.com/chromium/src/+/878b2e67ac952b00b2fcafc54867f61b25507923

Patch Set 1 #

Total comments: 2

Patch Set 2 : Pass the WebURLRequest in didStartProvisionalLoad() #

Total comments: 2

Patch Set 3 : Pass WebURLRequest as a reference #

Patch Set 4 : Pass WebURLRequest as a reference #

Patch Set 5 : Fix compile failures #

Patch Set 6 : Fix compile failures #

Patch Set 7 : Fix compile failures #

Total comments: 2

Patch Set 8 : Clear pending_navigation_info_ in NavigateInternal() #

Total comments: 4

Patch Set 9 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -26 lines) Patch
M content/renderer/render_frame_impl.h View 1 2 2 chunks +32 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +31 lines, -3 lines 0 comments Download
M content/shell/test_runner/web_frame_test_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/test_runner/web_frame_test_client.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/shell/test_runner/web_frame_test_proxy.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrameClient.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 48 (33 generated)
ananta
3 years, 9 months ago (2017-03-04 01:38:59 UTC) #4
Nate Chapin
I don't love stashing this information here, but it would be a fair bit of ...
3 years, 9 months ago (2017-03-06 19:16:03 UTC) #7
ananta
https://codereview.chromium.org/2734633002/diff/1/third_party/WebKit/public/web/WebDataSource.h File third_party/WebKit/public/web/WebDataSource.h (right): https://codereview.chromium.org/2734633002/diff/1/third_party/WebKit/public/web/WebDataSource.h#newcode65 third_party/WebKit/public/web/WebDataSource.h:65: virtual WebURLRequest& getRequestWritable() = 0; On 2017/03/06 19:16:03, Nate ...
3 years, 9 months ago (2017-03-06 22:42:05 UTC) #9
Nate Chapin
Still LGTM, just one more nit: https://codereview.chromium.org/2734633002/diff/20001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/2734633002/diff/20001/third_party/WebKit/public/web/WebFrameClient.h#newcode350 third_party/WebKit/public/web/WebFrameClient.h:350: WebURLRequest* request) {} ...
3 years, 9 months ago (2017-03-06 22:46:38 UTC) #10
ananta
https://codereview.chromium.org/2734633002/diff/20001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/2734633002/diff/20001/third_party/WebKit/public/web/WebFrameClient.h#newcode350 third_party/WebKit/public/web/WebFrameClient.h:350: WebURLRequest* request) {} On 2017/03/06 22:46:38, Nate Chapin wrote: ...
3 years, 9 months ago (2017-03-06 23:14:21 UTC) #11
jam
->clamy as she'd be a better reviewer
3 years, 9 months ago (2017-03-07 01:13:49 UTC) #27
ananta
+clamy
3 years, 9 months ago (2017-03-07 01:14:52 UTC) #28
clamy
Thanks! I'm mostly ok with the patch, one comment below. https://codereview.chromium.org/2734633002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2734633002/diff/120001/content/renderer/render_frame_impl.cc#newcode3439 ...
3 years, 9 months ago (2017-03-09 14:12:10 UTC) #35
ananta
https://codereview.chromium.org/2734633002/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2734633002/diff/120001/content/renderer/render_frame_impl.cc#newcode3439 content/renderer/render_frame_impl.cc:3439: if (pending_navigation_info_.get()) { On 2017/03/09 14:12:09, clamy wrote: > ...
3 years, 9 months ago (2017-03-09 21:54:36 UTC) #36
clamy
Thanks! content/ lgtm % comments. https://codereview.chromium.org/2734633002/diff/140001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2734633002/diff/140001/content/renderer/render_frame_impl.cc#newcode3438 content/renderer/render_frame_impl.cc:3438: // If we have ...
3 years, 9 months ago (2017-03-13 16:03:33 UTC) #37
ananta
https://codereview.chromium.org/2734633002/diff/140001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2734633002/diff/140001/content/renderer/render_frame_impl.cc#newcode3438 content/renderer/render_frame_impl.cc:3438: // If we have pending navigation to be sent ...
3 years, 9 months ago (2017-03-13 19:57:07 UTC) #38
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/2734633002/160001
3 years, 9 months ago (2017-03-13 19:58:27 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/382279)
3 years, 9 months ago (2017-03-13 21:28:58 UTC) #43
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/2734633002/160001
3 years, 9 months ago (2017-03-13 21:40:41 UTC) #45
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 22:41:14 UTC) #48
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/878b2e67ac952b00b2fcafc54867...

Powered by Google App Engine
This is Rietveld 408576698