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

Issue 14727006: Check that the files the renderer wants to preserve as part of a session restore are already availa… (Closed)

Created:
7 years, 7 months ago by Tom Sepez
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Check that the files the renderer wants to preserve as part of a session restore are already available to the renderer. The fix involves cracking open the WebHistoryItem, extracting its file paths, and checking them against ChildProcessSecurityPolicy for the messages ViewHostMsg_UpdateState and ViewHostMsg_FrameNavigate. BUG=237263 R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198965

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add test coverage. #

Total comments: 3

Patch Set 3 : Add additonal test for Navigate. #

Patch Set 4 : page_id / process_id confusion fixed. #

Patch Set 5 : Fix compliation warnings. #

Patch Set 6 : Fix another windows compilation warning. #

Patch Set 7 : . not -> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -11 lines) Patch
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 3 chunks +29 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 3 4 2 chunks +38 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 5 6 3 chunks +41 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Tom Sepez
Darin, do you have a suggestion on how to test this?
7 years, 7 months ago (2013-05-02 00:54:42 UTC) #1
darin (slow to review)
https://codereview.chromium.org/14727006/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/14727006/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode1246 content/browser/renderer_host/render_view_host_impl.cc:1246: bool RenderViewHostImpl::CanAccessFilesOfSerializedState( nit: this method should be listed after ...
7 years, 7 months ago (2013-05-02 22:15:35 UTC) #2
Tom Sepez
On 2013/05/02 22:15:35, darin wrote: > https://codereview.chromium.org/14727006/diff/1/content/browser/renderer_host/render_view_host_impl.cc > File content/browser/renderer_host/render_view_host_impl.cc (right): > > https://codereview.chromium.org/14727006/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode1246 > ...
7 years, 7 months ago (2013-05-06 22:12:26 UTC) #3
Tom Sepez
Darin, please review. This patch set adds a test that fabricates an update state message ...
7 years, 7 months ago (2013-05-06 22:14:14 UTC) #4
darin (slow to review)
For completeness, is it possible to write a similar test for RenderViewHostImpl::OnNavigate? https://codereview.chromium.org/14727006/diff/7001/content/browser/renderer_host/render_view_host_unittest.cc File content/browser/renderer_host/render_view_host_unittest.cc ...
7 years, 7 months ago (2013-05-06 23:39:47 UTC) #5
Tom Sepez
On 2013/05/06 23:39:47, darin wrote: > For completeness, is it possible to write a similar ...
7 years, 7 months ago (2013-05-07 00:09:52 UTC) #6
Tom Sepez
Darin, please review: Added new test.
7 years, 7 months ago (2013-05-07 01:24:49 UTC) #7
darin (slow to review)
LGTM, thanks for those extra improvements! My goal was to just make things a bit ...
7 years, 7 months ago (2013-05-07 04:36:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/14727006/16002
7 years, 7 months ago (2013-05-07 17:19:52 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-07 17:38:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/14727006/28003
7 years, 7 months ago (2013-05-07 21:08:26 UTC) #11
Tom Sepez
7 years, 7 months ago (2013-05-08 19:31:38 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 manually as r198965 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698