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

Issue 1802953003: RemoteBridgeFrameOwner: keep better track of the attached frame (Closed)

Created:
4 years, 9 months ago by dcheng
Modified:
4 years, 9 months ago
Reviewers:
haraken, sof
CC:
dcheng, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, haraken, Nate Chapin, loading-reviews_chromium.org, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RemoteBridgeFrameOwner: keep better track of the attached frame This CL eliminates some of the branches and simplifies the bookkeeping, since it needs to be done whether the FrameOwner is local or remote. Doing this bookkeeping is important, since it prevents a remote frame owner from retaining a WebLocalFrameImpl and keeping it live after it's already swapped out. BUG=none Committed: https://crrev.com/2a9d38d2a9724e5fc907ebcb239fc39f0929add6 Cr-Commit-Position: refs/heads/master@{#381508}

Patch Set 1 #

Patch Set 2 : Don't call virtuals indirectly from a ctor. #

Total comments: 6

Patch Set 3 : Address review comments #

Patch Set 4 : Doing work in constructors is evil. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -97 lines) Patch
M third_party/WebKit/Source/core/frame/Frame.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 2 chunks +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameOwner.h View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteFrame.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteFrame.cpp View 2 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 4 chunks +3 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/web/RemoteBridgeFrameOwner.h View 1 2 3 2 chunks +15 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/web/RemoteBridgeFrameOwner.cpp View 1 2 2 chunks +17 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 2 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
dcheng
https://codereview.chromium.org/1802953003/diff/20001/third_party/WebKit/Source/core/frame/RemoteFrame.cpp File third_party/WebKit/Source/core/frame/RemoteFrame.cpp (left): https://codereview.chromium.org/1802953003/diff/20001/third_party/WebKit/Source/core/frame/RemoteFrame.cpp#oldcode125 third_party/WebKit/Source/core/frame/RemoteFrame.cpp:125: if (m_remotePlatformLayer) This lets Frame::disconnectOwnerElement be devirtualized. Previously, this ...
4 years, 9 months ago (2016-03-16 09:26:18 UTC) #4
dcheng
This CL is prompted by feedback from haraken@ on https://crbug.com/582004: it's good to clear the ...
4 years, 9 months ago (2016-03-16 09:27:31 UTC) #5
haraken
LGTM https://codereview.chromium.org/1802953003/diff/20001/third_party/WebKit/Source/core/frame/Frame.cpp File third_party/WebKit/Source/core/frame/Frame.cpp (right): https://codereview.chromium.org/1802953003/diff/20001/third_party/WebKit/Source/core/frame/Frame.cpp#newcode118 third_party/WebKit/Source/core/frame/Frame.cpp:118: m_owner = nullptr; Is there any assert to ...
4 years, 9 months ago (2016-03-16 14:17:41 UTC) #8
dcheng
https://codereview.chromium.org/1802953003/diff/20001/third_party/WebKit/Source/core/frame/Frame.cpp File third_party/WebKit/Source/core/frame/Frame.cpp (right): https://codereview.chromium.org/1802953003/diff/20001/third_party/WebKit/Source/core/frame/Frame.cpp#newcode118 third_party/WebKit/Source/core/frame/Frame.cpp:118: m_owner = nullptr; On 2016/03/16 at 14:17:41, haraken wrote: ...
4 years, 9 months ago (2016-03-16 16:51:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802953003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802953003/40001
4 years, 9 months ago (2016-03-16 16:51:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802953003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802953003/60001
4 years, 9 months ago (2016-03-16 17:28:43 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-16 19:09:53 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 19:12:13 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2a9d38d2a9724e5fc907ebcb239fc39f0929add6
Cr-Commit-Position: refs/heads/master@{#381508}

Powered by Google App Engine
This is Rietveld 408576698