Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(44)

Issue 1041473002: Detach old frame on WebFrame::swap. (Closed)

Created:
5 years, 1 month ago by lfg
Modified:
4 years, 10 months ago
Reviewers:
dcheng
CC:
dcheng, blink-reviews, Nate Chapin, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : test and cleaning #

Patch Set 4 : rebasing #

Patch Set 5 : swicthing to enum #

Patch Set 6 : #

Patch Set 7 : renaming #

Patch Set 8 : rebase #

Patch Set 9 : tests and cleanup #

Total comments: 14

Patch Set 10 : addressing dcheng@'s comments #

Patch Set 11 : detachFromFrame #

Patch Set 12 : #

Total comments: 8

Patch Set 13 : rebase, addressing dcheng's comments #

Total comments: 7

Patch Set 14 : #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -70 lines) Patch
M Source/core/frame/Frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -1 line 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -8 lines 0 comments Download
M Source/core/frame/FrameClient.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -2 lines 0 comments Download
M Source/core/frame/RemoteFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +20 lines, -11 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/PrintContextTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/web/RemoteFrameClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +18 lines, -10 lines 0 comments Download
M Source/web/tests/FrameTestHelpers.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -4 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -14 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M public/web/WebRemoteFrameClient.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (3 generated)
dcheng
Very cool! Some initial thoughts. https://codereview.chromium.org/1041473002/diff/1/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/1041473002/diff/1/Source/web/WebFrame.cpp#newcode40 Source/web/WebFrame.cpp:40: if (isWebLocalFrame()) I think ...
5 years, 1 month ago (2015-03-27 04:08:48 UTC) #1
lfg
https://codereview.chromium.org/1041473002/diff/1/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/1041473002/diff/1/Source/web/WebFrame.cpp#newcode40 Source/web/WebFrame.cpp:40: if (isWebLocalFrame()) On 2015/03/27 04:08:47, dcheng wrote: > I ...
5 years, 1 month ago (2015-03-27 04:57:53 UTC) #2
lfg
PTAL, thanks!
4 years, 11 months ago (2015-06-03 17:54:11 UTC) #4
dcheng
https://codereview.chromium.org/1041473002/diff/160001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/1041473002/diff/160001/Source/core/frame/Frame.h#newcode56 Source/core/frame/Frame.h:56: enum class DetachType { Remove, Swap }; Let's call ...
4 years, 11 months ago (2015-06-04 00:58:23 UTC) #5
lfg
Addressed some comments and added a couple of questions, please take another look. Thanks! https://codereview.chromium.org/1041473002/diff/160001/Source/core/frame/Frame.h ...
4 years, 11 months ago (2015-06-04 19:16:59 UTC) #6
dcheng
https://codereview.chromium.org/1041473002/diff/160001/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/1041473002/diff/160001/Source/web/WebFrame.cpp#newcode52 Source/web/WebFrame.cpp:52: // If the frame has been detached during detaching ...
4 years, 11 months ago (2015-06-05 02:11:50 UTC) #7
lfg
On 2015/06/05 02:11:50, dcheng wrote: > > > Also, I have bad news =) > ...
4 years, 11 months ago (2015-06-05 19:39:26 UTC) #8
lfg
On 2015/06/05 19:39:26, lfg wrote: > On 2015/06/05 02:11:50, dcheng wrote: > > > > ...
4 years, 11 months ago (2015-06-05 19:48:57 UTC) #9
lfg
Please take a look. I've added a prepareForCommit() function in FrameLoader to handle this, and ...
4 years, 11 months ago (2015-06-05 21:50:39 UTC) #10
dcheng
https://codereview.chromium.org/1041473002/diff/210001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/1041473002/diff/210001/Source/core/frame/Frame.h#newcode56 Source/core/frame/Frame.h:56: enum class FrameDetachType { Remove, This is wrapped weird. ...
4 years, 10 months ago (2015-06-08 19:34:43 UTC) #11
lfg
https://codereview.chromium.org/1041473002/diff/210001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/1041473002/diff/210001/Source/core/frame/Frame.h#newcode56 Source/core/frame/Frame.h:56: enum class FrameDetachType { Remove, On 2015/06/08 19:34:42, dcheng ...
4 years, 10 months ago (2015-06-10 18:41:28 UTC) #12
dcheng
Looking good. Just a few more comments, and I think we can land this. https://codereview.chromium.org/1041473002/diff/230001/Source/core/loader/FrameLoader.cpp ...
4 years, 10 months ago (2015-06-10 19:56:30 UTC) #13
dcheng
Also, CC japhet@
4 years, 10 months ago (2015-06-10 19:56:42 UTC) #14
lfg
https://codereview.chromium.org/1041473002/diff/230001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/1041473002/diff/230001/Source/core/loader/FrameLoader.cpp#newcode1041 Source/core/loader/FrameLoader.cpp:1041: RefPtr<DocumentLoader> pdl = m_provisionalDocumentLoader; On 2015/06/10 19:56:29, dcheng wrote: ...
4 years, 10 months ago (2015-06-10 22:43:35 UTC) #15
dcheng
lgtm https://codereview.chromium.org/1041473002/diff/230001/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/1041473002/diff/230001/Source/web/WebFrame.cpp#newcode49 Source/web/WebFrame.cpp:49: toLocalFrame(toCoreFrame(this))->loader().prepareForCommit(); On 2015/06/10 at 22:43:35, lfg wrote: > ...
4 years, 10 months ago (2015-06-11 18:45:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1041473002/270001
4 years, 10 months ago (2015-06-11 19:56:18 UTC) #18
commit-bot: I haz the power
Committed patchset #15 (id:270001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196968
4 years, 10 months ago (2015-06-11 20:00:31 UTC) #19
dglazkov
A revert of this CL (patchset #15 id:270001) has been created in https://codereview.chromium.org/1177333002/ by dglazkov@chromium.org. ...
4 years, 10 months ago (2015-06-11 21:25:37 UTC) #20
dcheng
I'm not sure why, but part of the original change to prepare Chrome for this ...
4 years, 10 months ago (2015-06-11 21:41:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1041473002/270001
4 years, 10 months ago (2015-06-12 04:21:24 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2015-06-12 05:36:17 UTC) #24
Message was sent while issue was closed.
Committed patchset #15 (id:270001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197000

Powered by Google App Engine
This is Rietveld 408576698