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

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed)

Created:
4 years, 8 months ago by clamy
Modified:
4 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, blink-reviews, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, carlosk, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: store POST data in the FrameNavigationEntry This allows to properly resend it during hitsory navigations when browser-side-navigation is enabled. A rational for the design can be found in the following doc: https://docs.google.com/a/chromium.org/document/d/1BtrZjP-lbeza2OdRwr-68poSgGPE6YAfUftP5s1ugY8/edit?usp=sharing BUG=575210, 608372 TBR=nasko@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/34754b494e8f9706aa48463dcd1f17026ad658a2 Cr-Commit-Position: refs/heads/master@{#395131}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : Rebase #

Patch Set 6 : Not storing ResourceRequestBody in FrameNavigationEntry anymore #

Patch Set 7 : Cleanup #

Patch Set 8 : Rebase #

Patch Set 9 : Not sending POST data when cross-site redirect #

Total comments: 8

Patch Set 10 : Addressed comments #

Total comments: 45

Patch Set 11 : Addressed comments #

Total comments: 2

Patch Set 12 : Rebase #

Patch Set 13 : Addressed comments #

Total comments: 4

Patch Set 14 : Rebase + addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -42 lines) Patch
M content/browser/frame_host/frame_navigation_entry.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_navigation_entry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +20 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +18 lines, -10 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -3 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -5 lines 0 comments Download
M content/common/page_state_serialization.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -0 lines 0 comments Download
M content/common/page_state_serialization.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M content/common/resource_request_body.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/resource_request_body.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +51 lines, -4 lines 0 comments Download
M content/test/test_render_frame.cc View 2 chunks +2 lines, -1 line 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 52 (21 generated)
clamy
@nasko, creis: PTAL. This is a followup on the patch storing is_post on FrameNavigationEntries, for ...
4 years, 7 months ago (2016-04-27 11:26:18 UTC) #4
Charlie Reis
Hmm, I'm having trouble following the design here. Can you share some notes in a ...
4 years, 7 months ago (2016-04-27 23:00:56 UTC) #5
clamy
Thanks! To clarify some of the conversions happening in the patch, currently we have: In ...
4 years, 7 months ago (2016-04-29 16:07:17 UTC) #6
Charlie Reis
On 2016/04/29 16:07:17, clamy wrote: > Thanks! To clarify some of the conversions happening in ...
4 years, 7 months ago (2016-04-30 00:18:50 UTC) #7
clamy
So following your comment I've updated the CL so that we don't send the POST ...
4 years, 7 months ago (2016-05-03 15:21:11 UTC) #9
Charlie Reis
On 2016/05/03 15:21:11, clamy wrote: > So following your comment I've updated the CL so ...
4 years, 7 months ago (2016-05-03 22:41:38 UTC) #10
Charlie Reis
[+lukasza] Thanks-- some thoughts below. Can you add a link to the design doc (https://docs.google.com/a/chromium.org/document/d/1BtrZjP-lbeza2OdRwr-68poSgGPE6YAfUftP5s1ugY8/) ...
4 years, 7 months ago (2016-05-11 00:00:23 UTC) #12
clamy
Thanks! Updated the CL description with the link to the design doc. https://codereview.chromium.org/1907443006/diff/160001/content/browser/frame_host/frame_navigation_entry.cc File content/browser/frame_host/frame_navigation_entry.cc ...
4 years, 7 months ago (2016-05-11 08:54:41 UTC) #14
Charlie Reis
Thanks, this is looking much better. I haven't had time to review ResourceRequestBody::AppendExplodedHTTPBodyElement or RenderFrameImpl's ...
4 years, 7 months ago (2016-05-11 23:58:53 UTC) #15
Łukasz Anforowicz
> Lukasz, does this look like a good start towards the OOPIF fix as well? ...
4 years, 7 months ago (2016-05-12 02:54:00 UTC) #16
clamy
Thanks! For review speed, note that I'll be traveling all of tomorrow, and Monday is ...
4 years, 7 months ago (2016-05-12 08:53:14 UTC) #17
Łukasz Anforowicz
https://codereview.chromium.org/1907443006/diff/180001/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/1907443006/diff/180001/content/browser/frame_host/navigation_entry_impl.cc#newcode593 content/browser/frame_host/navigation_entry_impl.cc:593: method = frame_entry.method(); On 2016/05/12 08:53:13, clamy wrote: > ...
4 years, 7 months ago (2016-05-12 19:44:13 UTC) #18
Łukasz Anforowicz
lgtm from my side, assuming that the deep copy of ResourceRequestBody will get looked into ...
4 years, 7 months ago (2016-05-12 19:46:00 UTC) #19
Charlie Reis
Ok, I'm happy with this overall, though it'd be good to avoid the deep copy, ...
4 years, 7 months ago (2016-05-16 21:16:42 UTC) #20
Łukasz Anforowicz
https://codereview.chromium.org/1907443006/diff/180001/content/common/resource_request_body.cc File content/common/resource_request_body.cc (right): https://codereview.chromium.org/1907443006/diff/180001/content/common/resource_request_body.cc#newcode39 content/common/resource_request_body.cc:39: base::Time::FromDoubleT(element.file_modification_time)); On 2016/05/16 21:16:41, Charlie Reis (slow to reply) ...
4 years, 7 months ago (2016-05-18 00:22:27 UTC) #21
clamy
Thanks! https://codereview.chromium.org/1907443006/diff/180001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/1907443006/diff/180001/content/browser/frame_host/navigation_request.cc#newcode204 content/browser/frame_host/navigation_request.cc:204: post_data_ = body->MakeCopy(); On 2016/05/16 21:16:41, Charlie Reis ...
4 years, 7 months ago (2016-05-19 13:11:57 UTC) #22
Charlie Reis
Thanks! LGTM with one change in navigation_request.cc. https://codereview.chromium.org/1907443006/diff/180001/content/common/resource_request_body.cc File content/common/resource_request_body.cc (right): https://codereview.chromium.org/1907443006/diff/180001/content/common/resource_request_body.cc#newcode39 content/common/resource_request_body.cc:39: base::Time::FromDoubleT(element.file_modification_time)); On ...
4 years, 7 months ago (2016-05-19 17:43:48 UTC) #24
carlosk
Thanks for working on this. I had a few drafts here from a while ago ...
4 years, 7 months ago (2016-05-20 08:59:47 UTC) #26
clamy
Thanks! I'm TBRing nasko for frame_messages since he is OOO this week. https://codereview.chromium.org/1907443006/diff/260001/content/browser/frame_host/frame_navigation_entry.cc File content/browser/frame_host/frame_navigation_entry.cc ...
4 years, 7 months ago (2016-05-20 11:00:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443006/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443006/280001
4 years, 7 months ago (2016-05-20 11:00:44 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/231472)
4 years, 7 months ago (2016-05-20 12:24:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443006/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443006/280001
4 years, 7 months ago (2016-05-20 13:19:43 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/231504)
4 years, 7 months ago (2016-05-20 14:44:11 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443006/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443006/280001
4 years, 7 months ago (2016-05-20 14:45:38 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/231544)
4 years, 7 months ago (2016-05-20 16:19:13 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443006/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443006/280001
4 years, 7 months ago (2016-05-20 16:31:54 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/231600)
4 years, 7 months ago (2016-05-20 17:54:26 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443006/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443006/280001
4 years, 7 months ago (2016-05-20 18:28:53 UTC) #47
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 7 months ago (2016-05-20 19:13:14 UTC) #49
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/34754b494e8f9706aa48463dcd1f17026ad658a2 Cr-Commit-Position: refs/heads/master@{#395131}
4 years, 7 months ago (2016-05-20 19:16:21 UTC) #51
dcheng
4 years, 7 months ago (2016-05-23 07:28:57 UTC) #52
Message was sent while issue was closed.
On 2016/05/20 at 11:00:12, clamy wrote:
> Thanks! I'm TBRing nasko for frame_messages since he is OOO this week.

I just saw this while going through my backlog, but please don't TBR IPC
changes.

> 
>
https://codereview.chromium.org/1907443006/diff/260001/content/browser/frame_...
> File content/browser/frame_host/frame_navigation_entry.cc (right):
> 
>
https://codereview.chromium.org/1907443006/diff/260001/content/browser/frame_...
> content/browser/frame_host/frame_navigation_entry.cc:90: return body;
> On 2016/05/20 08:59:47, carlosk wrote:
> > nit: it seems clearer to return nullptr here and below and only create the
> > scoped_refptr in line 97.
> 
> Done.
> 
>
https://codereview.chromium.org/1907443006/diff/260001/content/browser/frame_...
> File content/browser/frame_host/navigation_request.cc (right):
> 
>
https://codereview.chromium.org/1907443006/diff/260001/content/browser/frame_...
> content/browser/frame_host/navigation_request.cc:266: if
(common_params_.method == "POST" && redirect_info.new_method != "POST")
> On 2016/05/19 17:43:48, Charlie Reis (slow to reply) wrote:
> > Looks like you might have missed my earlier comment here:
> > 
> > I think we should remove the first part (common_params_.method == "POST"). 
It's
> > not likely that post_data_ will exist when common_params_.method != "POST",
but
> > if it did, it would be bad to preserve it after a redirect to a GET.
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698