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

Issue 551973005: Streamline frame detach (Closed)

Created:
6 years, 3 months ago by Nate Chapin
Modified:
6 years, 2 months ago
Reviewers:
dcheng, abarth-chromium
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, oilpan-reviews, rwlbuis
Project:
blink
Visibility:
Public.

Description

Streamline frame detach Share a bit more code between LocalFrame and RemoteFrame, including moving the detach-time client notification down to FrameClient. Move the max frame counter to FrameHost instead of Page. Move detach logic from FrameLoader to LocalFrame, unless it manipulates FrameLoader members. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182999

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 15

Patch Set 4 : Address comments #

Patch Set 5 : fix compile #

Patch Set 6 : +FIXME #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -111 lines) Patch
M Source/core/dom/NodeRareData.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/Frame.h View 1 2 3 4 5 2 chunks +1 line, -7 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 4 5 3 chunks +20 lines, -3 lines 0 comments Download
M Source/core/frame/FrameClient.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.cpp View 2 chunks +22 lines, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 4 chunks +11 lines, -15 lines 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.h View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -41 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/page/Page.h View 1 2 4 chunks +0 lines, -17 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 6 7 2 chunks +0 lines, -14 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/RemoteFrameClientImpl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
Nate Chapin
6 years, 3 months ago (2014-09-16 19:28:56 UTC) #2
dcheng
(I didn't really look at the CL in too much detail, so just one quick ...
6 years, 3 months ago (2014-09-16 19:46:11 UTC) #3
sof
A minor plea would be not to change/tidy the logic too much here while https://codereview.chromium.org/517043003/ ...
6 years, 3 months ago (2014-09-16 19:56:35 UTC) #4
Nate Chapin
On 2014/09/16 19:56:35, sof wrote: > A minor plea would be not to change/tidy the ...
6 years, 3 months ago (2014-09-16 20:01:10 UTC) #5
sof
On 2014/09/16 20:01:10, Nate Chapin wrote: > On 2014/09/16 19:56:35, sof wrote: > > A ...
6 years, 3 months ago (2014-09-16 20:53:54 UTC) #6
Nate Chapin
On 2014/09/16 20:53:54, sof wrote: > On 2014/09/16 20:01:10, Nate Chapin wrote: > > On ...
6 years, 3 months ago (2014-09-16 21:00:49 UTC) #7
sof
On 2014/09/16 21:00:49, Nate Chapin wrote: > On 2014/09/16 20:53:54, sof wrote: > > On ...
6 years, 3 months ago (2014-09-19 11:46:38 UTC) #8
Nate Chapin
On 2014/09/19 11:46:38, sof wrote: > On 2014/09/16 21:00:49, Nate Chapin wrote: > > On ...
6 years, 3 months ago (2014-09-23 20:00:35 UTC) #9
dcheng
https://codereview.chromium.org/551973005/diff/40001/Source/core/dom/NodeRareData.cpp File Source/core/dom/NodeRareData.cpp (right): https://codereview.chromium.org/551973005/diff/40001/Source/core/dom/NodeRareData.cpp#newcode80 Source/core/dom/NodeRareData.cpp:80: COMPILE_ASSERT(FrameHost::maxNumberOfFrames < (1 << NodeRareData::ConnectedFrameCountBits), Frame_limit_should_fit_in_rare_data_count); static_assert? =) https://codereview.chromium.org/551973005/diff/40001/Source/core/frame/Frame.cpp ...
6 years, 2 months ago (2014-09-25 23:35:44 UTC) #10
Nate Chapin
https://codereview.chromium.org/551973005/diff/40001/Source/core/dom/NodeRareData.cpp File Source/core/dom/NodeRareData.cpp (right): https://codereview.chromium.org/551973005/diff/40001/Source/core/dom/NodeRareData.cpp#newcode80 Source/core/dom/NodeRareData.cpp:80: COMPILE_ASSERT(FrameHost::maxNumberOfFrames < (1 << NodeRareData::ConnectedFrameCountBits), Frame_limit_should_fit_in_rare_data_count); On 2014/09/25 23:35:43, ...
6 years, 2 months ago (2014-09-25 23:57:51 UTC) #11
dcheng
LGTM with one nit and compile error fixed (I think the second argument to static_assert ...
6 years, 2 months ago (2014-09-26 00:40:25 UTC) #12
Nate Chapin
https://codereview.chromium.org/551973005/diff/40001/Source/core/frame/Frame.cpp File Source/core/frame/Frame.cpp (right): https://codereview.chromium.org/551973005/diff/40001/Source/core/frame/Frame.cpp#newcode115 Source/core/frame/Frame.cpp:115: m_host = nullptr; On 2014/09/26 00:40:25, dcheng wrote: > ...
6 years, 2 months ago (2014-09-26 20:25:51 UTC) #13
dcheng
On 2014/09/26 at 20:25:51, japhet wrote: > https://codereview.chromium.org/551973005/diff/40001/Source/core/frame/Frame.cpp > File Source/core/frame/Frame.cpp (right): > > https://codereview.chromium.org/551973005/diff/40001/Source/core/frame/Frame.cpp#newcode115 ...
6 years, 2 months ago (2014-09-26 21:32:03 UTC) #14
Nate Chapin
On 2014/09/26 21:32:03, dcheng wrote: > On 2014/09/26 at 20:25:51, japhet wrote: > > > ...
6 years, 2 months ago (2014-09-26 21:49:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/551973005/100001
6 years, 2 months ago (2014-09-29 18:44:54 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_chromium_gn_compile_rel/builds/12069)
6 years, 2 months ago (2014-09-29 18:59:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/551973005/120001
6 years, 2 months ago (2014-09-29 19:51:26 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/26920)
6 years, 2 months ago (2014-09-29 21:05:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/551973005/120001
6 years, 2 months ago (2014-09-29 23:50:22 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/25198)
6 years, 2 months ago (2014-09-29 23:54:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/551973005/140001
6 years, 2 months ago (2014-09-30 20:41:56 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001) as 182999
6 years, 2 months ago (2014-09-30 22:57:42 UTC) #30
eustas
6 years, 2 months ago (2014-10-01 08:28:37 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/618253002/ by eustas@chromium.org.

The reason for reverting is: This patch breaks
SitePerProcessBrowserTest.NavigateRemoteFrame on swarming bots:
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_....

Powered by Google App Engine
This is Rietveld 408576698