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

Issue 196133032: Add test for filtering of IPC messages when RenderFrameHost is swapped out. (Closed)

Created:
6 years, 9 months ago by nasko
Modified:
6 years, 9 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, dcheng, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Add test for filtering of IPC messages when RenderFrameHost is swapped out. This is a followup CL to add test for the actual fix of filtering IPCs from swapped out RFHs. I've fixed the state transitions in RVH, since we had an illegal one and fixed up the unit tests to account for that. BUG=351815 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259466

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix unit tests for cross-site navigation and SwapOut. #

Total comments: 17

Patch Set 3 : Fixes based on Charlie's review. #

Patch Set 4 : Rebase on ToT. #

Patch Set 5 : Add a test bypassing OnCrossSiteResponse. #

Total comments: 10

Patch Set 6 : Rebase on ToT. #

Patch Set 7 : Another round of fixes. #

Total comments: 2

Patch Set 8 : Fix nits. #

Patch Set 9 : Fix NavigationControllerTest.LoadURL_WithBindings #

Total comments: 3

Patch Set 10 : Fixing url_chain and comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -77 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +17 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 19 chunks +210 lines, -69 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
nasko
Hey guys, Can you review this CL for me? Thanks, Nasko
6 years, 9 months ago (2014-03-19 20:34:09 UTC) #1
jam
lgtm
6 years, 9 months ago (2014-03-19 20:40:23 UTC) #2
Charlie Reis
I like the update to the test! One question below. https://codereview.chromium.org/196133032/diff/1/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://codereview.chromium.org/196133032/diff/1/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode254 ...
6 years, 9 months ago (2014-03-19 20:40:57 UTC) #3
nasko
Charlie, Can you take another look? This CL fixes the state transition and the unit ...
6 years, 9 months ago (2014-03-21 20:32:56 UTC) #4
Charlie Reis
[+site-isolation-reviews] Glad to see the unit tests getting more realistic and checking the states-- thanks ...
6 years, 9 months ago (2014-03-21 21:35:13 UTC) #5
nasko
https://codereview.chromium.org/196133032/diff/20001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/196133032/diff/20001/content/browser/frame_host/render_frame_host_manager.cc#newcode472 content/browser/frame_host/render_frame_host_manager.cc:472: // happened yet. On 2014/03/21 21:35:13, Charlie Reis wrote: ...
6 years, 9 months ago (2014-03-24 17:48:11 UTC) #6
Charlie Reis
LGTM. If we don't have test coverage for that case, let's add a test in ...
6 years, 9 months ago (2014-03-24 20:38:02 UTC) #7
nasko
I've added a test as you suggested and in the meantime cleaned up an extra ...
6 years, 9 months ago (2014-03-24 22:47:44 UTC) #8
Charlie Reis
Thanks for the extra test! One question about it and one about the observer, plus ...
6 years, 9 months ago (2014-03-24 23:24:42 UTC) #9
nasko
https://codereview.chromium.org/196133032/diff/80001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://codereview.chromium.org/196133032/diff/80001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode113 content/browser/frame_host/render_frame_host_manager_unittest.cc:113: // pointers shouldn't be used, as the object is ...
6 years, 9 months ago (2014-03-25 18:30:22 UTC) #10
Charlie Reis
Great. LGTM. (Sorry to miss these nits in the previous patch.) https://codereview.chromium.org/196133032/diff/110001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): ...
6 years, 9 months ago (2014-03-25 18:38:18 UTC) #11
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 9 months ago (2014-03-25 18:49:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/196133032/190001
6 years, 9 months ago (2014-03-25 18:50:11 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 20:04:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-25 20:04:16 UTC) #15
Charlie Reis
https://codereview.chromium.org/196133032/diff/350001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/196133032/diff/350001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode1066 content/browser/frame_host/navigation_controller_impl_unittest.cc:1066: url_chain.push_back(GURL()); I think we can just pass an empty ...
6 years, 9 months ago (2014-03-25 23:51:35 UTC) #16
nasko
The CQ bit was checked by nasko@chromium.org
6 years, 9 months ago (2014-03-26 00:11:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/196133032/390001
6 years, 9 months ago (2014-03-26 00:11:40 UTC) #18
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 04:06:41 UTC) #19
Message was sent while issue was closed.
Change committed as 259466

Powered by Google App Engine
This is Rietveld 408576698