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

Issue 544443002: Detach all subframes before swapping a frame. (Closed)

Created:
6 years, 3 months ago by nasko
Modified:
6 years, 3 months ago
Reviewers:
kenrb, dcheng, eseidel
CC:
blink-reviews, site-isolation-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Detach all subframes before swapping a frame. BUG=357747 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181764

Patch Set 1 #

Patch Set 2 : Finish the test. #

Patch Set 3 : Put a real document in subframe. #

Total comments: 3

Patch Set 4 : Fixes based on Ken's review and Daniel's comments. #

Total comments: 2

Patch Set 5 : Add comments per reviewers. #

Patch Set 6 : Remove ASSERT in detachChildren, since FrameLoader::commitProvisionalLoad can hit it with ref count… #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M Source/web/WebFrame.cpp View 1 2 3 4 3 chunks +14 lines, -4 lines 1 comment Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M Source/web/tests/data/subframe-b.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebFrame.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
nasko
Hey Ken, Can you review this CL for me? We need to detach all subframes ...
6 years, 3 months ago (2014-09-04 17:42:22 UTC) #2
dcheng
I took a glance, and it looks reasonable. It's been awhile since I've thought through ...
6 years, 3 months ago (2014-09-04 18:38:57 UTC) #3
kenrb
https://codereview.chromium.org/544443002/diff/40001/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/544443002/diff/40001/Source/web/WebFrame.cpp#newcode35 Source/web/WebFrame.cpp:35: oldFrame->detachChildren(); I haven't spent time thinking about the right ...
6 years, 3 months ago (2014-09-04 19:04:50 UTC) #4
dcheng
https://codereview.chromium.org/544443002/diff/40001/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/544443002/diff/40001/Source/web/WebFrame.cpp#newcode35 Source/web/WebFrame.cpp:35: oldFrame->detachChildren(); On 2014/09/04 at 19:04:50, kenrb wrote: > I ...
6 years, 3 months ago (2014-09-04 19:18:12 UTC) #5
nasko
Addressed Ken's and Daniel's comments. https://codereview.chromium.org/544443002/diff/40001/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/544443002/diff/40001/Source/web/WebFrame.cpp#newcode35 Source/web/WebFrame.cpp:35: oldFrame->detachChildren(); On 2014/09/04 19:18:11, ...
6 years, 3 months ago (2014-09-04 23:46:28 UTC) #6
kenrb
non-owner lgtm. We need to spend some more time on the swap sequence but I ...
6 years, 3 months ago (2014-09-05 19:28:09 UTC) #7
nasko
Eric, Can you review this CL? The goal is to ensure all child frames are ...
6 years, 3 months ago (2014-09-05 23:37:29 UTC) #9
nasko
On 2014/09/05 23:37:29, nasko wrote: > Eric, > Can you review this CL? The goal ...
6 years, 3 months ago (2014-09-08 20:11:10 UTC) #10
eseidel
dcheng is the right reviewer for this, but lgtm. https://codereview.chromium.org/544443002/diff/100001/Source/web/WebFrame.cpp File Source/web/WebFrame.cpp (right): https://codereview.chromium.org/544443002/diff/100001/Source/web/WebFrame.cpp#newcode36 Source/web/WebFrame.cpp:36: ...
6 years, 3 months ago (2014-09-10 18:09:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/544443002/100001
6 years, 3 months ago (2014-09-10 19:37:15 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 20:13:32 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as 181764

Powered by Google App Engine
This is Rietveld 408576698