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

Issue 10171018: Create swapped-out opener RVHs after a process swap. (Closed)

Created:
8 years, 8 months ago by Charlie Reis
Modified:
8 years, 7 months ago
Reviewers:
jam, Matt Perry, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, creis+watch_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

Create swapped-out opener RVHs after a process swap. This is required to support cross-process JavaScript calls, like postMessage. BUG=99202 TEST=window.opener present after a cross-process navigation. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134981

Patch Set 1 : Initial patch #

Patch Set 2 : Fix unit_tests compile #

Patch Set 3 : Fix PopupBlockingExtension test. #

Patch Set 4 : Misc cleanup #

Total comments: 12

Patch Set 5 : Remove RVHM destructor change #

Patch Set 6 : Fix review comments. #

Patch Set 7 : Remove unused line. #

Total comments: 2

Patch Set 8 : Remove parameter comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -145 lines) Patch
M chrome/browser/visitedlink/visitedlink_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 4 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/site_instance_impl.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/site_instance_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.h View 1 2 3 5 chunks +21 lines, -9 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 4 5 6 5 chunks +65 lines, -43 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager_unittest.cc View 1 2 2 chunks +67 lines, -4 lines 0 comments Download
M content/browser/web_contents/test_web_contents.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/web_contents/test_web_contents.cc View 1 2 3 4 chunks +15 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_delegate_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 11 chunks +30 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 11 chunks +69 lines, -10 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_helper.cc View 4 chunks +22 lines, -20 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/browser/site_instance.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 10 chunks +40 lines, -11 lines 0 comments Download
M content/renderer/render_widget.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_widget_fullscreen.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/render_view_fake_resources_test.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/render_view_test.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/test/test_renderer_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_renderer_host.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Charlie Reis
Matt, can you review? This CL makes sure that RenderViews exist in any situation that ...
8 years, 7 months ago (2012-04-30 20:34:38 UTC) #1
Matt Perry
https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc File content/browser/web_contents/render_view_host_manager.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc#newcode67 content/browser/web_contents/render_view_host_manager.cc:67: registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSING, Is this needed? See comment in web_contents_impl.cc ...
8 years, 7 months ago (2012-05-01 20:45:16 UTC) #2
Charlie Reis
https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc File content/browser/web_contents/render_view_host_manager.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc#newcode67 content/browser/web_contents/render_view_host_manager.cc:67: registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSING, On 2012/05/01 20:45:17, Matt Perry wrote: > ...
8 years, 7 months ago (2012-05-01 21:25:53 UTC) #3
Charlie Reis
https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc File content/browser/web_contents/render_view_host_manager.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc#newcode67 content/browser/web_contents/render_view_host_manager.cc:67: registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSING, On 2012/05/01 21:25:53, creis wrote: > On ...
8 years, 7 months ago (2012-05-01 21:41:46 UTC) #4
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc File content/browser/web_contents/render_view_host_manager.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc#newcode562 content/browser/web_contents/render_view_host_manager.cc:562: RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); nit: you can use ...
8 years, 7 months ago (2012-05-01 21:45:56 UTC) #5
Charlie Reis
https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc File content/browser/web_contents/render_view_host_manager.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/16002/content/browser/web_contents/render_view_host_manager.cc#newcode562 content/browser/web_contents/render_view_host_manager.cc:562: RenderViewHostMap::iterator iter = swapped_out_hosts_.find(instance->GetId()); On 2012/05/01 21:45:56, Matt Perry ...
8 years, 7 months ago (2012-05-01 21:57:05 UTC) #6
Charlie Reis
John, can you review for content and content/public OWNERS approval? Scott, can you review for ...
8 years, 7 months ago (2012-05-01 22:00:26 UTC) #7
sky
LGTM
8 years, 7 months ago (2012-05-01 22:20:56 UTC) #8
jam
https://chromiumcodereview.appspot.com/10171018/diff/37002/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/37002/content/renderer/render_view_impl.cc#newcode1538 content/renderer/render_view_impl.cc:1538: true, /* is_renderer_created */ nit: here and in other ...
8 years, 7 months ago (2012-05-02 17:42:29 UTC) #9
Charlie Reis
https://chromiumcodereview.appspot.com/10171018/diff/37002/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10171018/diff/37002/content/renderer/render_view_impl.cc#newcode1538 content/renderer/render_view_impl.cc:1538: true, /* is_renderer_created */ On 2012/05/02 17:42:30, John Abd-El-Malek ...
8 years, 7 months ago (2012-05-02 17:52:28 UTC) #10
jam
8 years, 7 months ago (2012-05-02 19:09:11 UTC) #11
lgtm

Powered by Google App Engine
This is Rietveld 408576698