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

Issue 1039403002: OOPIF: Remove the FrameTreeNode when a RemoteFrame is detached. (Closed)

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

Description

OOPIF: Remove the FrameTreeNode when a RemoteFrame is detached. This ensures that subframe processes aren't left around if a parent page removes an out-of-process iframes. TBR=jam@chromium.org BUG=471346, 474772 TEST=See bug for repro steps. Credit to nick@ for TaskManagerOOPIFBrowserTest.LeavePageWithCrossSiteIframes Committed: https://crrev.com/0f6edddc2ae422fd69d9cc69c384f046b67d3e8e Cr-Commit-Position: refs/heads/master@{#324160}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add security checks #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Add tests and revise check. #

Total comments: 4

Patch Set 5 : Disable ActiveTab test on FYI bot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -3 lines) Patch
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
M content/browser/bad_message.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.cc View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 3 chunks +90 lines, -0 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Charlie Reis
Nick, can you take a look? (Thanks for the browser test code-- I've reviewed it ...
5 years, 9 months ago (2015-03-27 21:33:49 UTC) #2
ncarter (slow)
https://codereview.chromium.org/1039403002/diff/1/content/browser/frame_host/render_frame_proxy_host.cc File content/browser/frame_host/render_frame_proxy_host.cc (right): https://codereview.chromium.org/1039403002/diff/1/content/browser/frame_host/render_frame_proxy_host.cc#newcode161 content/browser/frame_host/render_frame_proxy_host.cc:161: void RenderFrameProxyHost::OnDetach() { Do we need to apply some ...
5 years, 9 months ago (2015-03-27 22:03:46 UTC) #3
Charlie Reis
[+lfg, dcheng] Thanks. New patch up. Lucas, I'm wondering if you can take a look ...
5 years, 9 months ago (2015-03-28 00:09:18 UTC) #5
nasko
https://codereview.chromium.org/1039403002/diff/20001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1039403002/diff/20001/content/browser/site_per_process_browsertest.cc#newcode285 content/browser/site_per_process_browsertest.cc:285: IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, CleanupCrossSiteIframe) { Do you think it is worthwhile ...
5 years, 8 months ago (2015-03-30 22:58:17 UTC) #7
dcheng
I'll take a look at this after I get back to Seattle. Sorry for the ...
5 years, 8 months ago (2015-03-31 01:48:31 UTC) #8
Charlie Reis
Ok, I've rebased this to include Alex's fix for https://crbug.com/423587 and added some tests for ...
5 years, 8 months ago (2015-04-06 19:17:12 UTC) #10
ncarter (slow)
lgtm https://codereview.chromium.org/1039403002/diff/80001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1039403002/diff/80001/content/browser/site_per_process_browsertest.cc#newcode345 content/browser/site_per_process_browsertest.cc:345: EXPECT_EQ(foo_url, observer.last_navigation_url()); These tests are looking so compact ...
5 years, 8 months ago (2015-04-06 21:13:38 UTC) #11
dcheng
https://codereview.chromium.org/1039403002/diff/80001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1039403002/diff/80001/content/renderer/render_frame_proxy.cc#newcode312 content/renderer/render_frame_proxy.cc:312: Send(new FrameHostMsg_Detach(routing_id_)); If there are several proxies for this ...
5 years, 8 months ago (2015-04-06 23:34:19 UTC) #13
Charlie Reis
https://codereview.chromium.org/1039403002/diff/80001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1039403002/diff/80001/content/renderer/render_frame_proxy.cc#newcode312 content/renderer/render_frame_proxy.cc:312: Send(new FrameHostMsg_Detach(routing_id_)); On 2015/04/06 23:34:18, dcheng wrote: > If ...
5 years, 8 months ago (2015-04-07 18:45:56 UTC) #14
dcheng
lgtm
5 years, 8 months ago (2015-04-07 22:02:55 UTC) #15
Charlie Reis
Thanks. Alex, as I mentioned in person, I'm going to disable the ExtensionApiTest.ActiveTab test since ...
5 years, 8 months ago (2015-04-07 22:56:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039403002/100001
5 years, 8 months ago (2015-04-07 22:57:24 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 8 months ago (2015-04-08 00:21:09 UTC) #21
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 00:22:52 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0f6edddc2ae422fd69d9cc69c384f046b67d3e8e
Cr-Commit-Position: refs/heads/master@{#324160}

Powered by Google App Engine
This is Rietveld 408576698