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

Issue 2406053002: PlzNavigate: Fix the failing ContinueWhereILeftOffTest.PostWithPassword test. (Closed)

Created:
4 years, 2 months ago by ananta
Modified:
3 years, 10 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Fix the failing ContinueWhereILeftOffTest.PostWithPassword test. This test exercises the session restore code path by posting passwords via a top level FORM post and then exits the browser and restarts it. Assumption being that after restart we won't have the post data available as it should have been stripped here https://cs.chromium.org/chromium/src/components/sessions/content/content_serialized_navigation_driver.cc?dr&q=GetSanitizedPageSta&sq=package:chromium&l=101 in the sesson restore code path during exit. This fails in PlzNavigate because the FrameHostMsg_BeginNavigation IPC only sends the post data via the CommonNavigationParams structure. Hence when the request eventually completes in the renderer via the FrameMsg_CommitNavigation IPC, we lose the fact that the post contains passwords. This eventually makes it back to the browser via the PageState which also loses the flag. Fix is to pass the flag which indicates the post sensitive data like passwords in the ResourceRequestBodyImpl structure. BUG=655422 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/4dbb42fe4765527a3f0ed359caac5f3dce7b1440 Cr-Commit-Position: refs/heads/master@{#425533}

Patch Set 1 #

Patch Set 2 : Pass the flag which indicates that the post data contains passwords to the browser via the FrameHos… #

Patch Set 3 : Fix comment #

Patch Set 4 : Fix test failures #

Total comments: 3

Patch Set 5 : Pass the fact that a post contains passwords via a bool flag contains_sensitive_data_ in the Resour… #

Patch Set 6 : Pass the fact that a post contains passwords via a bool flag contains_sensitive_data_ in the Resour… #

Patch Set 7 : Revert changes to navigation_params.h #

Patch Set 8 : Remove the ResourceRequestBodyImpl.contains_sensitive_info_ flag serialization from page_state_seri… #

Total comments: 2

Patch Set 9 : Fix comment #

Total comments: 4

Patch Set 10 : Address comments and add code to serialize and deserialize the contains_sensitive_info_ field in th… #

Total comments: 6

Patch Set 11 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M content/child/web_url_request_util.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/page_state_serialization.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/resource_messages.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M content/common/resource_request_body_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M content/common/resource_request_body_impl.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 70 (46 generated)
ananta
4 years, 2 months ago (2016-10-10 23:48:29 UTC) #3
jam
there are test failures?
4 years, 2 months ago (2016-10-11 15:42:40 UTC) #8
ananta
+nasko, clamy
4 years, 2 months ago (2016-10-13 00:56:43 UTC) #11
ananta
On 2016/10/11 15:42:40, jam wrote: > there are test failures? Yeah. The approach was wrong. ...
4 years, 2 months ago (2016-10-13 00:58:19 UTC) #15
jam
lgtm https://codereview.chromium.org/2406053002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2406053002/diff/60001/content/renderer/render_frame_impl.cc#newcode633 content/renderer/render_frame_impl.cc:633: (!info.urlRequest.httpBody().isNull() ? nit: this would be more readable ...
4 years, 2 months ago (2016-10-13 04:34:30 UTC) #22
clamy
Thanks! One comment below. I'm also ccing lukasza@ since he worked on other cases involving ...
4 years, 2 months ago (2016-10-13 12:56:17 UTC) #24
Łukasz Anforowicz
On 2016/10/13 12:56:17, clamy wrote: > Thanks! One comment below. I'm also ccing lukasza@ since ...
4 years, 2 months ago (2016-10-13 18:56:29 UTC) #25
ananta
https://codereview.chromium.org/2406053002/diff/60001/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/2406053002/diff/60001/content/browser/frame_host/navigation_entry_impl.cc#newcode692 content/browser/frame_host/navigation_entry_impl.cc:692: navigation_start, method, false, post_body ? post_body : post_data_); On ...
4 years, 2 months ago (2016-10-13 20:16:43 UTC) #27
ananta
On 2016/10/13 18:56:29, Łukasz Anforowicz wrote: > On 2016/10/13 12:56:17, clamy wrote: > > Thanks! ...
4 years, 2 months ago (2016-10-13 20:17:47 UTC) #28
ananta
On 2016/10/13 20:17:47, ananta wrote: > On 2016/10/13 18:56:29, Łukasz Anforowicz wrote: > > On ...
4 years, 2 months ago (2016-10-13 22:21:38 UTC) #35
nasko
The code as is in PS8 looks good. I'd defer to lukasza@ on the details ...
4 years, 2 months ago (2016-10-13 22:28:54 UTC) #36
clamy
Thanks! Lgtm. I'm deferring to lukasza@ for the Android issues. https://codereview.chromium.org/2406053002/diff/140001/content/common/resource_request_body_impl.h File content/common/resource_request_body_impl.h (right): https://codereview.chromium.org/2406053002/diff/140001/content/common/resource_request_body_impl.h#newcode73 ...
4 years, 2 months ago (2016-10-14 12:25:36 UTC) #39
ananta
https://codereview.chromium.org/2406053002/diff/140001/content/common/resource_request_body_impl.h File content/common/resource_request_body_impl.h (right): https://codereview.chromium.org/2406053002/diff/140001/content/common/resource_request_body_impl.h#newcode73 content/common/resource_request_body_impl.h:73: // Set to true if the post data contains ...
4 years, 2 months ago (2016-10-14 20:08:42 UTC) #40
jam
lgtm https://codereview.chromium.org/2406053002/diff/160001/content/common/resource_messages.cc File content/common/resource_messages.cc (right): https://codereview.chromium.org/2406053002/diff/160001/content/common/resource_messages.cc#newcode428 content/common/resource_messages.cc:428: bool contains_sensitive_info = false; nit: no need to ...
4 years, 2 months ago (2016-10-14 22:36:04 UTC) #45
Łukasz Anforowicz
AFAIK getting ResourceRequestBody[Impl] across Java boundaries depends on EncodeResourceRequestBody, which doesn't currently support the new ...
4 years, 2 months ago (2016-10-14 22:45:08 UTC) #46
ananta
On 2016/10/14 22:45:08, Łukasz Anforowicz wrote: > AFAIK getting ResourceRequestBody[Impl] across Java boundaries depends on ...
4 years, 2 months ago (2016-10-14 23:43:24 UTC) #47
Łukasz Anforowicz
Thanks - I've shared a suggestion below for improving the comments (and asked about one ...
4 years, 2 months ago (2016-10-15 00:02:27 UTC) #51
ananta
https://codereview.chromium.org/2406053002/diff/160001/content/common/resource_messages.cc File content/common/resource_messages.cc (right): https://codereview.chromium.org/2406053002/diff/160001/content/common/resource_messages.cc#newcode428 content/common/resource_messages.cc:428: bool contains_sensitive_info = false; On 2016/10/14 22:36:03, jam wrote: ...
4 years, 2 months ago (2016-10-15 00:23:32 UTC) #52
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/2406053002/200001
4 years, 2 months ago (2016-10-15 01:47:58 UTC) #61
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/281923)
4 years, 2 months ago (2016-10-15 01:53:44 UTC) #63
Will Harris
rs lgtm for resource_messages.cc
4 years, 2 months ago (2016-10-15 02:02:43 UTC) #64
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/2406053002/200001
4 years, 2 months ago (2016-10-15 02:03:44 UTC) #66
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-15 02:09:52 UTC) #68
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 02:11:42 UTC) #70
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/4dbb42fe4765527a3f0ed359caac5f3dce7b1440
Cr-Commit-Position: refs/heads/master@{#425533}

Powered by Google App Engine
This is Rietveld 408576698